Re: Fix SWSUSP & !SWAP

Marc Giger
2003-04-24T07:37:02Z

Good Morning All:-)

On Wed, 23 Apr 2003 21:37:41 -0700
"Martin J. Bligh" <mbligh@aracnet.com> wrote:

> >> > I don't believer I've ever seen things get OOM killed. Instead, page
> >> > cache is discarded until things do fit.
> >>
> >> What happens if user allocated pages are filling up all the space,
> >> not page cache? Trust me, it happens ;-)
> >

Yes, it happens...:-)

> > Yep, just because I haven't seen it, doesn't mean a thing. :>. In that

<snip>

</snip>

> The more I think about this, the more it seems so much simpler to just
> require a reserved swap area the size of your RAM to suspend into. Would
> make the code so much simpler ... forget the option bit I suggested earlier
> ;-)

I think most people doesn't interest wheter the code is simple or not...it must work!

What I like to see is that we can define in /etc/fstab an entry for a separate suspend partition or suspend file.

eg. for a partition:
/dev/sda4 none swsusp swsp 0 0

or for a file:
/tmp/swsusp none swsusp swsp 0 0

Is it possible? It's also just an idea...

Marc

Also I wouldn't like it, if my programs get OOM-killed just because swap and memory are full! The reasons because I use standby and hybernation are:

1. I hate booting...(If I like booting I would use windows;-))
2. I want to continue working on the last work without opening the programs again
3. I can go home faster:-)