-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, 2017-12-14 at 17:50 -0500, David T-G wrote:
Carlos, et al --
...and then Carlos E. R. said... % % On Thursday, 2017-12-14 at 11:17 -0500, David T-G wrote: % ... % >How much swap do I need if I'm planning to suspend to disk (aka hibernate % >as compared to sleep, but I forget the s2/s3/... stages)? % % Well, you need as much as you need... :-)
Gee, thanks :-)
I know, I know... :-) It is a recursive statement. Linux has a few. This is mine ;-)
% % There can't be an exact reccomendation. You initial choice of 17G is % fine (it is what I have, more or less). Only experience with your % actual usage pattern will tell. [snip]
Well, dang. I guess I share Dave Howorth's position in that I'd like to know some real guidelines. Who knew that Window's hiberfil.sys for dumping RAM to disk alongside the variable-size pagefile.sys for its equivalent of swapping would be so useful?
My guideline: with 8 GiB of RAM, make it 10..20 GiB of swap: possibly 16, which is double the RAM :-p. If you don't intend to ever hibernate, 6 should suffice. Many people could go along with nothing - you see, it does depend on what is your actual workload. 2 GiB is too little: I'm using 3.3 this instant. Yesterday I was using "shotwell", a photo program. It alone had more than 2 GB in swap, and my total was 6, IIRC. Disk space is cheap, nowdays, so make it big. I just looked at mine: 25 GiB in SSD. I made it real big because SSD likes emtpy space to play with, although I don't know if I did it right for sure.
Soooooo... I think I hear that swap space is used to write the current active memory for hibernation as well as to swap out process data for CPU time sharing, and I think I hear that there are is no firm way to ensure that one always has enough "hibernation" space free. Is that accurate?
Yes, although the kernel should know and abort nicely if not possible to hibernate. I haven't been in that situation for years, so I can't say.
/me wonders if creating an 8G file in OS space and using swapon to turn it on right before hibernation (and then off again upon waking up) is a reasonable plan...
Nope. Doesn't seem worth the hasle to me. Takes time to prepare. Also the kernel needs to known at boot time where is the hibernation image.
Thanks again & HH
:-D
Welcome. :-) - -- Cheers, Carlos E. R. (from openSUSE 42.2 x86_64 "Malachite" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlo0BVoACgkQtTMYHG2NR9WO5wCcCtQXcswGVn9bhKkoXfbwKGVd 3A0AoJA0/UtKFIiP6z7hBSgAR4pR9+wS =WYwV -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org