public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Rik van Riel <riel@redhat.com>
Cc: Valdis.Kletnieks@vt.edu, kernel list <linux-kernel@vger.kernel.org>
Subject: Re: sched-idle and disk-priorities for 2.6.X
Date: Fri, 23 Jan 2004 19:59:15 +0100	[thread overview]
Message-ID: <20040123185914.GA870@elf.ucw.cz> (raw)
In-Reply-To: <Pine.LNX.4.44.0401212010520.15146-100000@chimarrao.boston.redhat.com>

Hi!

> > ulimit -m 1
> > <some task>
> > 
> > should make that task run with extremely low priority, right?
> 
> Yeah, when the box is under memory pressure, pages from that
> task should never hit the active list.  Instead, they should
> always stay on the inactive list and the non-referenced pages
> from that app should get reclaimed.
> 
> OTOH, if the app keeps referencing all pages, maybe I need
> to tune up the aggressiveness a bit and also reclaim the
> referenced pages ... if the current patch doesn't work right
> I'll make a more aggressive one.

I'm afraid it needs to be more aggressive.

I made two programs, each walking over 150MB of memory, and ran them
at same time on 250MB machine. One of them with ulimit -m 1... Both
got about the same ammount of RAM and progressed at similar speed.

							Pavel
-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

  reply	other threads:[~2004-01-23 18:59 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-16 18:10 sched-idle and disk-priorities for 2.6.X Pavel Machek
2004-01-16 19:37 ` Valdis.Kletnieks
2004-01-17 15:24   ` Bill Davidsen
2004-01-17 15:29     ` Nick Piggin
2004-01-19  4:50       ` Bill Davidsen
2004-01-19  5:39         ` Nick Piggin
2004-01-17 23:29   ` Pavel Machek
2004-01-18 18:47     ` Rik van Riel
2004-01-18 19:58       ` Pavel Machek
2004-01-21 19:49         ` Rik van Riel
2004-01-22  1:04           ` Pavel Machek
2004-01-22  1:13             ` Rik van Riel
2004-01-23 18:59               ` Pavel Machek [this message]
2004-01-23 19:04                 ` Rik van Riel
2004-01-23 21:04                   ` Pavel Machek
2004-01-26 23:08                     ` bill davidsen
2004-02-03 19:13                       ` Pavel Machek
2004-01-26  2:06       ` Bill Davidsen
2004-01-26  7:19         ` Pavel Machek

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=20040123185914.GA870@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=Valdis.Kletnieks@vt.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=riel@redhat.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