Carlos, et al -- ...and then Carlos E. R. said... % % On Thursday, 2017-12-14 at 17:50 -0500, David T-G wrote: % % >...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 ;-) *grin* % % >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. Yep. And I'm at just over 2x, so I'm fine there ... AFAIK. % % 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. Agreed. I'm likely to be that guy, too. % % Yesterday I was using "shotwell", a photo program. It alone had more % than 2 GB in swap, and my total was 6, IIRC. Not a lot of photo, but I'll definitely be playing with ImageMagick as well as tinkering with OpenShot. [Oh, remind me to go back through the video editor thread and ask if there's anything that will read/write iMovie project files.] % % 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. Yeah; I'm inclined to agree. For now I'm spinning 1TB; eventually I hope to move to a 256B SSD (or whatever we will call an M.2 "drive" at that time) and reserve spinning for slow-is-ok and long-term stuff. In any case, though, I can certainly afford swap. % % >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. I sure hope so -- but I also don't want to get caught unable to hibernate because I'm too busy, because that's my steady state! :-) % % >/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. No time; I'd prepare the sparse file once and then just turn it on and off as part of the hibernation script. What, me do manual work?!? :-) % Also the kernel needs to known at boot time where is the hibernation % image. Hmmm... That's a good point. I wonder how it knows whether or not to go there, because it would always be the same thing... HH :-D -- David T-G See http://justpickone.org/davidtg/email/ See http://justpickone.org/davidtg/tofu.txt -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org