Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Alpha Linux Memory size?
@ 2000-08-08  0:31 Eugene Chu
  2000-08-08  0:45 ` Greg Lindahl
  0 siblings, 1 reply; 13+ messages in thread
From: Eugene Chu @ 2000-08-08  0:31 UTC (permalink / raw)
  To: axp-list

Hello,

I'm getting conflicting responses to this.  Does anyone know what is the
maximum memory that Linux can address on an Alpha platform?

eyc




^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: Alpha Linux Memory size?
@ 2000-08-08  1:26 Eugene Chu
  2000-08-08  1:49 ` Greg Lindahl
  0 siblings, 1 reply; 13+ messages in thread
From: Eugene Chu @ 2000-08-08  1:26 UTC (permalink / raw)
  To: axp-list

Greg Lindahl wrote:

>>I'm getting conflicting responses to this.  Does anyone know what is the
>>maximum memory that Linux can address on an Alpha platform?

>Until recently, 1-2 GB, depending. Now there is a bigmemory patch that works
>on several architectures which raises it to however much you like stuffing
>in a machine.

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?

eyc




^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Alpha Linux Memory size?
@ 2000-08-08 22:38 Eugene Chu
  2000-08-09  0:10 ` W Bauske
  2000-08-09  1:56 ` Paul Jakma
  0 siblings, 2 replies; 13+ messages in thread
From: Eugene Chu @ 2000-08-08 22:38 UTC (permalink / raw)
  To: axp-list

OK, I think I have a picture.  Thanks to the following for their
replies:

Greg Lindahl
Jay Eastbrook
Adam Powell
Ross Knepper

The maximum memory size that Lunix kernel 2.2.x can recognize is 2 GB.
With application of the bigmem patch, the kernel can use an unlimited
amount of memory.  This feature is already in kernel 2.4.x.  There are
a couple of repositories of patches at:

        http://www.kernel.org/pub/linux/kernel/people/andrea/patches/
and/or
        http://www.kernel.org/pub/linux/kernel/people/andrea/kernels/

which must contain the bigmem patches.

My second question concerned swapping or thrashing when an application
starts to use up all the physical memory in the system, and still needs
to do disk I/O.  With the file system cache that ordinarily takes up
whatever unused memory there is in the system, the performance of such
a program can become unpredictable as it fights with the UBC for memory
(or rather, when it needs memory, and cached data must be flushed).
The mlock function seems like a good way to make sure that the
application has all the memory it needs, just as long as it does not
attempt to lock down so much memory that the rest of the system can no
longer do anything.

The other possibility is to mmap the files and use the VM management
features of the operating system (and maybe hardware) to access the
files as arrays within the program.  There are two problems with this.
First, if the system is memory bound already, there is precious little
memory remaining to let the OS do its thing.  Second, the VM system
usually has no idea how you want to access your data, so it can not
optimally swap the pieces of the data for you.  (Exactly like caching;
the CPU caches only work with prescribed algorithms, and if the way
your program accesses data is not consistent with the way the CPU cache
works, your data access speed will be down to memory speed.)  Many
papers have been written on this subject, including how to provide
hints to the VM using the madvise function.

To alleviate the problem of insufficient physical memory, we are
attempting to do our own memory management using large files.  Since we
know exactly how our program uses its data, we can use separate threads
to perform write-behinds or read-aheads to keep data not currently used
on disk.  But the bugger here is that file I/O uses file system cache,
and CPU cycles to copy between user space and file system cache.  So,
we're looking into using raw partitions as our disk buffers.  At least
on Solaris, I/O to raw disk partitions seems to require no system
buffering whatsoever, so no memory is being used, and no CPU cycles are
wasted in copying between user space and system cache.

thanks again for all the inputs, and further comments are welcome.

eugene




^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Alpha Linux Memory size?
@ 2000-08-09 21:29 Eugene Chu
  2000-08-10  0:50 ` Paul Jakma
  0 siblings, 1 reply; 13+ messages in thread
From: Eugene Chu @ 2000-08-09 21:29 UTC (permalink / raw)
  To: axp-list

Hi Paul,

Thanks for your reply.

Do you know what Linux kernel Red Hat's 6.2 is based on?  (Will raw I/O
be available in RH 6.2, or whatever the latest version it is?)

eugene




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2000-08-10  0:48 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-08  0:31 Alpha Linux Memory size? Eugene Chu
2000-08-08  0:45 ` Greg Lindahl
2000-08-08 14:07   ` Jay Estabrook
  -- strict thread matches above, loose matches on Subject: below --
2000-08-08  1:26 Eugene Chu
2000-08-08  1:49 ` Greg Lindahl
2000-08-08 17:38   ` Adam C Powell IV
2000-08-08 18:08     ` Jeff Sturm
2000-08-08 21:26     ` Ross A Knepper
2000-08-08 22:38 Eugene Chu
2000-08-09  0:10 ` W Bauske
2000-08-09  1:56 ` Paul Jakma
2000-08-09 21:29 Eugene Chu
2000-08-10  0:50 ` Paul Jakma

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