On 11/26/2016 01:46 PM, Paul Groves wrote:
Yes I do have a use for the 24gb swap (I have 24gb RAM). I am planning to set it up so that when my UPS is activated in a power cut the server should hibernate. (I have not looked into this yes but I have an APC back-ups CS-650 with a usb lead so should be easy once I know how).
That is then, this is now. Solve your immediate problem now. You are not doing hibernate NOW so you don't need 24G swap NOW. Linus is very flexible about swap. You can run merrily under normal conditions with a lot less swap. I'm my case I have enough slack on LVM that I could, if I wanted, create an extra 100G swap partition on my LVM. I'd also remind you that with Linux you don't need a swap PARTITION, you can swap to a file. As long as there is space *somewhere* Linux can use it for swap. It doesn't have to be all in one partition or all on one file system. You could ... swapoff delete the swap partition create a 4G swap partition swap on create a 20G ext4FS, mount it on /mnt rsync /home to /mnt unmount /home delete the /home partition create an appropriate to your need /home partition on LVM rsync /home back from /mnt unmount /mnt Now, how much free do you have on LVM? How much free do you have on /home? how much space is being used by /srv? Figure out how much you need to grow your rootFS RIGHT NOW. My policy would be to put /usr/share and the rarely accessed stuff under /home/<username> on slower media. There are a lot of DOT files in your home directory that you'll need, and of course your (web) application runs out /srv. Yes, they need fast access. But, comparatively speaking. Bow often do you access man pages or the package documentation files there? heck, a lot of that space is taken up with copy after copy of the "GNU LESSER GENERAL PUBLIC LICENSE". Heck, I have over 1,000 of those there! Each one is 18K. (I also have some called "LICENCE".) As it is, you have /usr as part of the rootFS. Calculate how much space you are using for those copies on your system. You might also think of purging the unused language files through your system The tool "bleachbit" is useful for that :-) There's a very good case to be made for having swap on fast media when the machine is running, but does it need to be on fast media for hibernate? My grub2 config file has entries that use resume=/dev/disk/by-label/SWAP which is what we normally assume, but there's no reason the "hibernate/resume" could come from another device, other than the normal swap. And does it have to be the same physical device? I note reading https://wiki.archlinux.org/index.php/Power_management/Suspend_and_hibernate#... that the size of the hibernate does not have to be the same as the size of RAM. There's also a 'compress' option. See also https://wiki.debian.org/Hibernation/Hibernate_Without_Swap_Partition -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org