* Memory usage
@ 2000-08-02 4:00 Brent Rice
0 siblings, 0 replies; 5+ messages in thread
From: Brent Rice @ 2000-08-02 4:00 UTC (permalink / raw)
Just recently, I have been trying to run some very memory intensive code
on our XP1000 workstation. We have a gig of RAM, but I get a
segmentation fault after using only about 130MB. I suppose that this
could be the result of the system restricting the memory usage of a
single user, but am not really sure.
Does anybody have any comments or suggestions?
I would greatly appreciate them!
Thanks!
Brent Rice
University of Colorado-Boulder
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Memory usage
@ 2000-08-03 4:00 Jay Vlack
2000-08-10 4:00 ` Jeff Donsbach
0 siblings, 1 reply; 5+ messages in thread
From: Jay Vlack @ 2000-08-03 4:00 UTC (permalink / raw)
Hi,
I assume that you're running Tru64 UNIX. If so, read on...
You need to increase the maximum per process data segment size. The default value is 134217728, or roughly 130MB as you noted.
Create a stanza file and use sysconfigdb to update the proc subsystem in sysconfigtab. For example, the following will increase the value to 500MB:
proc:
per-proc-data-size = 536870912
You must reboot the system before the changes will take effect. See the man pages for "sysconfigdb" and "stanza" for more details, and be careful not to take too much memory away from the OS.
--> Jay
--
Spam note: remove the x from my email address to reply.
Posted with Ink Spot for WinCE
http://www.dejavusoftware.com/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Memory usage
2000-08-03 4:00 Memory usage Jay Vlack
@ 2000-08-10 4:00 ` Jeff Donsbach
0 siblings, 0 replies; 5+ messages in thread
From: Jeff Donsbach @ 2000-08-10 4:00 UTC (permalink / raw)
Actually, the first step in fixing this is a little simpler than
reconfiguring the kernel.
The default limits are
128MB - per process data size (default for user processes)
1GB - kernel limit per process (kernel's "hard" limit)
A user can increase his default limit up to the kernel's hard limit by using
the C-Shell "limit" command or the "/bin/ulimit" command in other shells.
I.e.
% unlimit datasize (C-Shell syntax)
increases your default data size for that shell and any child processes of
that shell from then on. I usually put "unlimit datasize" in my .cshrc file.
If you need to increase the kernel's "hard limit" beyond 1GB, you can edit
the "sysconfigtab" file as outlined below. You can also use the
"dxkerneltuner" CDE GUI tool. It will handle the formatting correctly in the
"sysconfigtab" file. There are actually two parameters in the "proc"
subsystem. "per-proc-data-size" is the user default datasize (aka the "soft"
limit). The default value for this is 128MB. The parameter
"max-per-proc-data-size" is the value for the kernel's "hard limit". It's
default value is 1 GB.
In Tru64 V5.0 and later, I beleive the defaults for these values have been
changed to 1GB and 4GB respectively.
Regards,
Jeff Donsbach
Compaq Computer Corp
Partner Engineering
Jay Vlack <jvlackx@earthlink.net> wrote in message
news:8mc3ek$f1o@usenet.pa.dec.com...
> Hi,
>
> I assume that you're running Tru64 UNIX. If so, read on...
>
> You need to increase the maximum per process data segment size. The
default value is 134217728, or roughly 130MB as you noted.
>
> Create a stanza file and use sysconfigdb to update the proc subsystem in
sysconfigtab. For example, the following will increase the value to 500MB:
>
> proc:
> per-proc-data-size = 536870912
>
> You must reboot the system before the changes will take effect. See the
man pages for "sysconfigdb" and "stanza" for more details, and be careful
not to take too much memory away from the OS.
>
> --> Jay
>
> --
> Spam note: remove the x from my email address to reply.
>
> Posted with Ink Spot for WinCE
> http://www.dejavusoftware.com/
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Memory Usage
@ 2001-07-30 20:36 Brian Repsher
2001-07-30 23:02 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
0 siblings, 1 reply; 5+ messages in thread
From: Brian Repsher @ 2001-07-30 20:36 UTC (permalink / raw)
This might have been covered before. I read most of the messages about
raising max-proc etc.
But I'm still a bit perplexed about something. I can't seem to get
past allocating 50% of the RAM. Is there a limit on the amount of RAM
available to the OS.
Help me get a clue.
Brian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Memory Usage
2001-07-30 20:36 Memory Usage Brian Repsher
@ 2001-07-30 23:02 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
0 siblings, 0 replies; 5+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2001-07-30 23:02 UTC (permalink / raw)
In article <d50e866e.0107301236.1e5e058d@posting.google.com>, cbr020@email.mot.com (Brian Repsher) writes:
>This might have been covered before. I read most of the messages about
>raising max-proc etc.
>
>But I'm still a bit perplexed about something. I can't seem to get
>past allocating 50% of the RAM. Is there a limit on the amount of RAM
>available to the OS.
What operating system? There's the barest hint that you're asking
about Tru64 UNIX, by mentioning max-proc, but I distrust barest
hints. The version of the operating system would also be useful.
V5.1 is current, but lots of people are still running V5.0A and
a bunch of versions from the V4 stream. And some are still running
V3.something for one reason or another.
Assuming Tru64 UNIX... The creation of virtual memory (which may
eventually consume a corresponding amount of physical memory), is
limited by a number of kernel parameters and resources.
o The system has process limits on the amount of virtual memory
that can be created for stack space and data space. These limits
have two values, the maximum and the default. The default data
size limit is 128 MB on most systems, with the maximum being
1 GB. The default stack size limit is 2 MB, with a maxmimum
of 32 MB. V5 may have raised the default to 8 MB.
Most shells support a command that allows raising the default
to the system maximum. See your shell manual page for the
particulars; usually limit or ulimit.
The system maximum and initial default can be changed by changing
the appropriate kernel parameter. On recent versions you can use
sysconfig, dxkerneltuner and similar tools. Older versions required
changing a kernel configuration file parameter, building a new
kernel and rebooting with the new kernel.
o The amount of page/swap space can also limit the amount of virtual
memory that can be created. In the default page/swap space reservation
mode one page of page/swap space is reserved for (nearly) every page
of virtual memory created. This ensures that there will be enough
page/swap space if it is all needed, but limits the amount of virtual
memory to (nearly) the amount of page/swap space.
Creating virtual memory with mmap(2), backed by a real file
allows using that file as page/swap space.
In the optional page/swap space reservation mode, space isn't
reserved and virtual memory can be created up to the system
maximum. Once the physical starts being used, the limit becomes
the sum of available physical memory and page/swap space. Running
out of page/swap space in this mode is not a good thing to have
happen. The consequences should be described in the system
management documentation. If you don't have paper copies, they're
on the Documentation CDROM.
>
>Help me get a clue.
Offering some clues on your part would be useful.
>
>Brian
>
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-07-30 23:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-30 20:36 Memory Usage Brian Repsher
2001-07-30 23:02 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
-- strict thread matches above, loose matches on Subject: below --
2000-08-03 4:00 Memory usage Jay Vlack
2000-08-10 4:00 ` Jeff Donsbach
2000-08-02 4:00 Brent Rice
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox