Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Adam C Powell IV <hazelsct@mit.edu>
To: axp-list@redhat.com
Subject: Re: Alpha Linux Memory size?
Date: Tue, 08 Aug 2000 11:38:34 -0600	[thread overview]
Message-ID: <3990459A.716D8A2D@mit.edu> (raw)
In-Reply-To: 001c01c000da$ec1bf6a0$7e52fea9@hptilap.hpti.com

Greg Lindahl wrote:

> > This is related to my previous question about direct I/O.  If my
> > program has a huge memory requirement, I would prefer to use up as much
> > system memory as is available, thus reducing swapping action.
>
> Right. Like most modern Unix implementations, Linux will use all of memory
> for disk caching depending on system activity. The traditional way to
> represent this in Unix is to mmap the entire file. This works in Linux just
> like everywhere else. All filesystems support mmap.

Correct me if I'm wrong, but I interpreted the question as:

Is there a way to prevent the disk/file cache from displacing memory used by
processes, so the process data stay in memory and don't get swapped out?

Here's the original question, note the last two sentences in particular (which
you didn't quote):

Eugene Chu wrote:

> Thanks for the reply Greg.
>
> This is related to my previous question about direct I/O.  If my
> program has a huge memory requirement, I would prefer to use up as much
> system memory as is available, thus reducing swapping action.  Now, if
> the program needs to read and write a lot of files in the process, I
> have another user of memory; file system caching.  I don't know how it
> works in Linux, but unified buffer caching usually means that the
> system uses up all available memory for file caching.  So I either need
> more memory or a file I/O method that bypasses system caching.  Would
> the various file systems types available in Linux be able to provide
> this capability?

-Adam P.





  reply	other threads:[~2000-08-08 17:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-08  1:26 Alpha Linux Memory size? Eugene Chu
2000-08-08  1:49 ` Greg Lindahl
2000-08-08 17:38   ` Adam C Powell IV [this message]
2000-08-08 18:08     ` Jeff Sturm
2000-08-08 21:26     ` Ross A Knepper
  -- strict thread matches above, loose matches on Subject: below --
2000-08-09 21:29 Eugene Chu
2000-08-10  0:50 ` Paul Jakma
2000-08-08 22:38 Eugene Chu
2000-08-09  0:10 ` W Bauske
2000-08-09  1:56 ` Paul Jakma
2000-08-08  0:31 Eugene Chu
2000-08-08  0:45 ` Greg Lindahl
2000-08-08 14:07   ` Jay Estabrook
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox