public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Ivanovich <ivanovich@menta.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: can max. cache size be selected?
Date: 19 Nov 2001 01:55:08 -0700	[thread overview]
Message-ID: <m1adxj87ir.fsf@frodo.biederman.org> (raw)
In-Reply-To: <Pine.LNX.4.30.0111190145510.766-100000@mustard.heime.net> <01111903121500.05756@localhost.localdomain>
In-Reply-To: <01111903121500.05756@localhost.localdomain>

Ivanovich <ivanovich@menta.net> writes:

> I ask this because lowering the max. cache size could solve the problem that 
> some people have with too much memory going to swap and, in consequence, 
> making some apps unresponsive for a time
> 
> If max. cache size could be selected people who don't use much disk or just 
> need to work with a lot of apps at the same time (desktop?) could reduce it 
> to get better response when switching to inactive tasks who could have went 
> to swap to grow the cache...
> 
> am i wrong with my logic?

Linux is currently optimized for programs actually getting things done.  So
idle processes are penalized.  Getting fast responses from idle when the
system is under other kinds of load is an interesting problem.  A simple
limit on cache size really does not address the problem, and truly penalizes
cases when things are getting done.

The only simple solution I can think of attacking swap clustering to make it
more efficient.  In that case it may be possible to bring all data back from
swap in a single I/O transaction for a process.  Which should be quiet
efficient both when the processes is swapped out and when it is being
swapped in. 

> is this possible?

You have the source.

Eric

  reply	other threads:[~2001-11-19  9:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-19  0:46 swap? Roy Sigurd Karlsbakk
2001-11-19  2:12 ` can max. cache size be selected? Ivanovich
2001-11-19  8:55   ` Eric W. Biederman [this message]
2001-11-19 13:42 ` swap? James A Sutherland
2001-11-19 13:57   ` swap? Remco Post
2001-11-19 14:22     ` swap? Roy Sigurd Karlsbakk

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=m1adxj87ir.fsf@frodo.biederman.org \
    --to=ebiederm@xmission.com \
    --cc=ivanovich@menta.net \
    --cc=linux-kernel@vger.kernel.org \
    /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