From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id D12962F5F1 for ; Tue, 8 Aug 2000 13:38:37 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id NAA10672 for axp-list@listman.redhat.com; Tue, 8 Aug 2000 13:38:37 -0400 Received: from powell.mrd.nist.gov (powell.mrd.nist.gov [132.163.192.92]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id NAA10668 for ; Tue, 8 Aug 2000 13:38:37 -0400 Received: from localhost ([127.0.0.1] helo=mit.edu) by powell.mrd.nist.gov with esmtp (Exim 3.12 #1 (Debian)) id 13MDKl-0002fM-00 for ; Tue, 08 Aug 2000 11:38:35 -0600 Message-ID: <3990459A.716D8A2D@mit.edu> Date: Tue, 08 Aug 2000 11:38:34 -0600 From: Adam C Powell IV Organization: Massachvsetts Institvte of Technology X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.17 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Alpha Linux Memory size? References: <001c01c000da$ec1bf6a0$7e52fea9@hptilap.hpti.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors 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.