From: Denis Vlasenko <vda@ilport.com.ua>
To: Jim MacBaine <jmacbaine@gmail.com>
Cc: linux-kernel@vger.kernel.org, Nick Craig-Wood <nick@craig-wood.com>
Subject: Re: /proc/sys/vm/swappiness == 0 makes OOM killer go beserk
Date: Sat, 14 Jan 2006 17:45:56 +0200 [thread overview]
Message-ID: <200601141745.56368.vda@ilport.com.ua> (raw)
In-Reply-To: <3afbacad0601140553u374273bao71c0cb74108354d8@mail.gmail.com>
On Saturday 14 January 2006 15:53, Jim MacBaine wrote:
> On 1/14/06, Nick Craig-Wood <nick@craig-wood.com> wrote:
>
> > On my home workstation I do a lot of stuff with very large video
> > files, so set swappiness to 0 some time ago so using these large files
> > would stop all the applications getting pushed out into swap.
>
> My motivation was similar: My desktop usually runs 24 hrs and I leave
> large applications which I use from time to time always open. Like
> OpenOffice, Firefox, Emacs with large buffers, etc. In the night, the
> machine performs two disk-intensive tasks. First a backup then
> updatedb. And every morning about 650 MB of 1 GB RAM is used for
> caches and all my application need to be swapped in before I can use
> them.
>
> Of course, the increase of disk cache is reasonable for those tasks,
> but honestly, I don't care whether the updatedb process takes 10 or 20
> minutes in the night. But I do care if switching between applications
> needs >10 seconds in the morning.
>
> Would it be possible to trigger paging in specific applications from
> userspace? So I might run something like
>
> echo -n firefox-bin > /proc/sys/vm/page-in
> echo -n soffice-bin > /proc/sys/vm/page-in
> ...
Crude, but may work:
swapoff -a
swapon -a
> after my nightly cron jobs have filled the memory with disk cache data
> that won't be useful anymore, because in my daily work I rarely touch
> 10% of the filesystem.
--
vda
next prev parent reply other threads:[~2006-01-14 15:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5uzvD-8tr-19@gated-at.bofh.it>
2006-01-14 11:02 ` Nick Craig-Wood
2006-01-14 13:53 ` Jim MacBaine
2006-01-14 15:45 ` Denis Vlasenko [this message]
2006-01-13 15:55 Jim MacBaine
2006-01-13 16:32 ` Ram Gupta
2006-01-13 16:43 ` Jim MacBaine
2006-01-13 18:04 ` Ram Gupta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200601141745.56368.vda@ilport.com.ua \
--to=vda@ilport.com.ua \
--cc=jmacbaine@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nick@craig-wood.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®