David,

Personally, I don't use SWAPGEN, I just run makeswap as part of boot.local, 
rc.local or systemd local routines.  This way, I don't have to worry about 
changes in V-disk sizes or future changes in swap disk formats.

Thanks,

Sam
(217) 862-9227 (office)
(602) 327-2134 (cell)

-----Original Message-----
From: Linux on 390 Port <LINUX-390@VM.MARIST.EDU> On Behalf Of David Boyes
Sent: Thursday, December 27, 2018 7:38 AM
To: LINUX-390@VM.MARIST.EDU
Subject: question on SWAPGEN preferences

I'm trying to tackle some of the backlogged nits with SWAPGEN, and wanted to 
get opinions on a couple of changes.



  1.  Right now, the size of the swap disk is specified in # of blocks. Would 
it be valuable to be able to specify this in megabytes/gigabytes and let 
SWAPGEN worry about the geometry issues needed to get that amount of space? For 
backward compatibility, the default would remain # of blocks, but adding a new 
option to interpret the value as meg/gig wouldn’t break anything, eg:

SWAPGEN 300 1048576 would be treated as allocate 1048576 blocks. This would be 
the default.

SWAPGEN 300 8G ( UNITS SIZE would look at the geometry of the storage 
requested, figure out how many blocks would be needed (at the desired block 
size) to get that amount of space, and them do the deed. New option values: 
UNITS SIZE indicates by size, UNITS BLKS to get the # of blocks, default UNITS 
BLKS.

  2.  Add a BLKSIZE option to specify size of blocks (512,1024, 4096) for more 
efficient use of space.  Default would remain 512 (as now).



Thoughts?

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send email to 
lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.marist.edu%2Fhtbin%2Fwlvindex%3FLINUX-390&amp;data=02%7C01%7CSam.Cohen%40LRS.COM%7C20da5b76d9804590dc2908d66c1240a1%7C62af9ccc42164ae2a1d306614c59c315%7C0%7C0%7C636815222990736053&amp;sdata=OIsOM6%2FkWyG%2FgWcUDrx8nrwrBvzQEOee0hnSeUtrtQM%3D&amp;reserved=0
----------------------------------------------------------------------
For more information on Linux on System z, visit
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.linuxvm.org%2F&amp;data=02%7C01%7CSam.Cohen%40LRS.COM%7C20da5b76d9804590dc2908d66c1240a1%7C62af9ccc42164ae2a1d306614c59c315%7C0%7C0%7C636815222990736053&amp;sdata=OghbrnNCE2iANrYwpsWPYfYZOr2nveNxxrTAXBiH85I%3D&amp;reserved=0

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to