From: Steven White <srw@isis.ps.uci.edu>
Subject: Re: A problem porting sbrk
Date: Sun, 23 Feb 1997 15:01:08 -0800 (PST) [thread overview]
Message-ID: <16e2bea79d6902ca2f72a93565e50d0a.axp-list@archive.invalid> (raw)
Richard Henderson writes:
> Would the person having the sbrk problem try this out? I think
> this will be close enough to satisfy both OSF and current Linux libc.
...
Changes to kernel source listed, adding new system call to the kernel...
...
(By the way, sbrk and brk are called by malloc, and so are
crucial to many programs.)
Right now I'm afraid to try this, because I just got my machine
(preconfigured from SWT) and I haven't recompiled the kernel
myself yet, at this point. Even though the change looks simple,
I might screw it up and then I'd be in big trouble...
However, it seems to me that this doesn't address the main
problem. Regardless of the way the "out of memory" error is reported,
the OSF program isn't able to get as much memory as the same
program compiled with gcc on the linux machine itself.
When I compile with gcc on linux and run on linux, I get 30
successful calls to sbrk before it runs out of memory (600 Mb). When I
compile with cc on OSF and run on OSF, I get 10 successful calls
(200 Mb). Both of these are behaving correctly. But when I
compile with cc on OSF and run on linux, I only get 5 successful
calls to sbrk--100 Mb when the machine has 256 Mb of RAM.
(limits are datasize=614400 kbytes, stacksize=8192 kbytes).
I don't really care about how it dies if it runs out of memory--
I just want to be able to run big programs. I purchased the OSF
c++ compiler cxx for my OSF machine, and it optimizes much better
than gcc.
Steve White
srwhite@uci.edu
UC Irvine Dept of Physics
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-02-23 23:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-02-23 23:01 Steven White [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-02-24 19:38 A problem porting sbrk Steven White
[not found] <199702232301.PAA30446@hedrock.ps.uci.edu>
1997-02-24 17:29 ` Richard Henderson
[not found] <199702230245.UAA27778@atheist.tamu.edu>
1997-02-23 17:12 ` Richard Henderson
1997-02-22 2:01 Steven White
1997-02-23 2:45 ` Richard Henderson
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