[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

autopartkit



Hi Benjamin,

good to see that you changed sizes. Yesterday our System halted 
after /var run out of memory...

> swap          lvm:vg_system:lv_swap:swap    2*$RAMSIZE 2*$RAMSIZE

As for swap, I wonder if 2*$RAMSIZE should be kept as dogma when having 
machines with >4GB of RAM. There is no "Min/Max" function (should be 
easy to be implemented in autopartkit), otherwise I'd go for

MIN ( 2*$RAMSIZE, MAX(1G, 4G - $RAMSIZE) )

Giving
- 2*RAMSIZE, when RAM< 512 MB
- 4G-RAMSIZE, when 512 MB < RAM < 3 GB 
- 1G, when RAM > 3 GB

Implementing MIN/MAX and $VOLSIZE could ease tweaking autopartkit (cf. 
http://bugs.skolelinux.no/show_bug.cgi?id=1077)

Comments welcome
Regards
Ralf



Reply to: