* hardcoded process limits? ( no more memory for process )
@ 1996-06-18 4:00 Steffen Ullrich
1996-06-21 4:00 ` Sridhar Chirravuri
1996-06-21 4:00 ` SUMMARY: " Steffen Ullrich
0 siblings, 2 replies; 4+ messages in thread
From: Steffen Ullrich @ 1996-06-18 4:00 UTC (permalink / raw)
I have a problem with a really huge process running on DEC UNIX 3.2C
on a station with 320MByte RAM. Although there is still plenty of RAM
available and enough VM (deferred mode) the process cannot allocate
more memory. using with the standard malloc this causes a SIGSEGV within
the <new> operator, if I use another malloc library I can get the
message that the process cannot get more memory ( <sbrk> returns NULL,
errno == ENOMEM). The limits (getrlimit) are pretty high so they don't
restrict the process. The user limits are also large enough .
I guess that there is some per-process memory limit which is coded into
the kernel and which hopefully can be changed. I tried to find some
documentation about configuration of the subsystems (sysconfig(8)) vm or
proc but n.a.
Any clues?
--
Steffen Ullrich * ccrlphr@xensei.com * http://www.xensei.com/users/ccrlphr/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: hardcoded process limits? ( no more memory for process )
1996-06-18 4:00 hardcoded process limits? ( no more memory for process ) Steffen Ullrich
@ 1996-06-21 4:00 ` Sridhar Chirravuri
1996-06-21 4:00 ` SUMMARY: " Steffen Ullrich
1 sibling, 0 replies; 4+ messages in thread
From: Sridhar Chirravuri @ 1996-06-21 4:00 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 968 bytes --]
Steffen Ullrich wrote:
>
> I have a problem with a really huge process running on DEC UNIX 3.2C
> on a station with 320MByte RAM. Although there is still plenty of RAM
> available and enough VM (deferred mode) the process cannot allocate
> more memory. using with the standard malloc this causes a SIGSEGV within
> the <new> operator, if I use another malloc library I can get the
> message that the process cannot get more memory ( <sbrk> returns NULL,
> errno == ENOMEM). The limits (getrlimit) are pretty high so they don't
> restrict the process. The user limits are also large enough .
>
> I guess that there is some per-process memory limit which is coded into
> the kernel and which hopefully can be changed. I tried to find some
> documentation about configuration of the subsystems (sysconfig(8)) vm or
> proc but n.a.
>
> Any clues?
>
> --
> Steffen Ullrich * ccrlphr@xensei.com * http://www.xensei.com/users/ccrlphr/
The following doc should help you
[-- Attachment #2: osf-sysconfig-proc --]
[-- Type: text/plain, Size: 6029 bytes --]
How to increase process virtual memory limits in Digital Unix
=============================================================
The best reference source for all this good stuff is the book titled
"System tuning and Performance management"
1) Do the following command to see what your current parameters are:
# sysconfig -q proc
max-proc-per-user = 256
max-threads-per-user = 32768
per-proc-stack-size = 2097152
max-per-proc-stack-size = 33554432
per-proc-data-size = 134217728
max-per-proc-data-size = 1073741824
max-per-proc-address-space = 1073741824
per-proc-address-space = 1073741824
autonice = 0
open-max-soft = 4096
open-max-hard = 4096
ncallout = 66084
round-robin-switch-rate = 0
round_robin_switch_rate = 0
sched-min-idle = 0
sched_min_idle = 0
give-boost = 1
give_boost = 1
# sysconfig -q vm
ubc-minpercent = 10
ubc-maxpercent = 100 (Amount of physical memory, RAM,
allowed for disk I/O buffering)
ubc-borrowpercent = 10 (let this one be about 10 to 20)
ubc-maxdirtywrites = 5
ubc-wait-for-io = 1
vm-max-wrpgio-kluster = 32768
vm-max-rdpgio-kluster = 16384
vm-cowfaults = 4
vm-mapentries = 200
vm-maxvas = 1073741824
vm-maxwire = 16777216
vm-heappercent = 7
vm-anonklshift = 17
vm-anonklpages = 1
vm-vpagemax = 16384
vm-segmentation = 1
vm-ubcpagesteal = 24
vm-ubcdirtypercent = 10
vm-ubcseqstartpercent = 50
vm-ubcseqpercent = 10
vm-csubmapsize = 1048576
vm-ubcbuffers = 256
vm-syncswapbuffers = 128
vm-asyncswapbuffers = 4
vm-clustermap = 1048576
vm-clustersize = 65536
vm-zone_size = 0
vm-kentry_zone_size = 16777216
vm-syswiredpercent = 80
vm-inswappedmin = 1
vm-page-free-target = 128
vm-page-free-min = 20
vm-page-free-reserved = 10
vm-page-free-optimal = 74
2) You need to increase the following parameters according to your
requirements:
(parameters that start with "max" are hard limits that apply to
super user also. So if you want to change the limit on the total
allocated memory of a user process you would tweak the
"per-proc-data-size" parameter)
per-proc-stack-size = 2097152 (Can be as huge as vm-maxvas, but
would be about 10 times lesser)
max-per-proc-stack-size = 33554432 (Can be as huge as vm-maxvas, but
would be about 10 times lesser)
per-proc-data-size = 134217728 (Can equal vm-maxvas)
max-per-proc-data-size = 1073741824 (Can equal vm-maxvas)
max-per-proc-address-space = 1073741824 (Can equal vm-maxvas)
per-proc-address-space = 1073741824 (Can equal vm-maxvas)
vm-kentry_zone_size (You can double the default value, if you get a warning
while running the program that kernel zone_size
is smaller for managing the system work-load)
vm-maxvas (Total virtual address space the system has and a user can access)
on immediate swap systems., its better close to total amount
of virtual memory you have., but if your system is specifically
configured for lazy swap., then you might have a much higher
value)
vm-maxwire ( Amount of RAM (wired) memory allocated per process
before it uses swap-space for memory allocation;
Can go close to the amount of your physical memory,
which can be allocated per any process. Your RAM - 30 Meg
would be a good estimate. Don't change the default value
if you have less than 48 Meg of RAM on the system)
3) See limit command to figure out what are your current limits.
("csh" might rarely reports erroneous values, because of some
software correction)
4) Run your program and see if it gets you going!
For Example with 128 MB memory (RAM) and about 300 Meg swap, the
following values give you a rough idea of maximum values you can assign
with immediate swap mode (having the link /sbin/swapdefault to the primary
swap partition). If you have lazy swap and you believe you never use all
the memory you allocate., you can have proc: sub-system values much higher.
(If you have LOTTA memory (RAM) you might have to double the default
values for the vm-kentry_zone_size!)
When you need to change some parameters., you can do so by incorporating
them into /etc/sysconfigtab file. For example my /etc/sysconfigtab file
is:
vm:
ubc-maxpercent=100
ubc-borrowpercent = 10
vm-maxwire = 104857600
vm-vpagemax = 16000
vm-syswiredpercent = 90
vm-kentry_zone_size = 33554432
proc:
per-proc-stack-size = 222097152
max-per-proc-stack-size = 222097152
per-proc-data-size = 1134217728
max-per-proc-data-size = 1134217728
max-per-proc-address-space = 1134217728
per-proc-address-space = 1134217728
NOTE1:
Please make sure which sub-section which parameter belongs before
trying to change them. Also, once you change've these values
in /etc/sysconfigtab file., you need a system re-boot to
update the system with new values.
NOTE2:
If you are allocating large arrays you might want to do the following
thing as root:
# dbx -k /vmunix /dev/mem
(dbx) p stackinc
32768
(dbx) a stackinc=0x20000
131072
(dbx)quit
NOTE3:
If you get a message fork/procdup:task create fail code OX11,
you need to increase the values (in proc sub-system):
max-proc-per-user = 256
max-threads-per-user = 32768
NOTE4:
You might need to incease maxusers parameter in your
kernel configuration file (/sys/conf/HOSTNAME) and re-build
the kernel (doconfig -c HOSTNAME) to increase the system
wide number of processes. This is particularly important if
you have lotta memory and lotta users/processes going on the
system. You can check it by:
# echo "p maxusers" | dbx -k /vmunix /dev/mem
(If you don't have enough maxusers values., you might see
a message that task/proc table full messages)
---------------------------------------
Sridhar Chirravuri - OSF/Ultrix Support
Digital Equipment Corporation
Customer Support Center
ALF1-3/P26
5555 Windward Parkway West
Alpharetta, GA. 30201
1(800)354-9000 (Ext: 75386)
sri@alf.dec.com
Standard Disclaimer Applicable
---------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SUMMARY: hardcoded process limits? ( no more memory for process )
1996-06-18 4:00 hardcoded process limits? ( no more memory for process ) Steffen Ullrich
1996-06-21 4:00 ` Sridhar Chirravuri
@ 1996-06-21 4:00 ` Steffen Ullrich
1996-06-27 4:00 ` changing colours Benjamin Jay Robinson
1 sibling, 1 reply; 4+ messages in thread
From: Steffen Ullrich @ 1996-06-21 4:00 UTC (permalink / raw)
In article <835130515.23566@manta.latrade.com>,
steffen@manta.latrade.com (Steffen Ullrich) writes:
>
> I have a problem with a really huge process running on DEC UNIX 3.2C
> on a station with 320MByte RAM. Although there is still plenty of RAM
> available and enough VM (deferred mode) the process cannot allocate
> more memory. using with the standard malloc this causes a SIGSEGV within
> the <new> operator, if I use another malloc library I can get the
> message that the process cannot get more memory ( <sbrk> returns NULL,
> errno == ENOMEM). The limits (getrlimit) are pretty high so they don't
> restrict the process. The user limits are also large enough .
>
> I guess that there is some per-process memory limit which is coded into
> the kernel and which hopefully can be changed. I tried to find some
> documentation about configuration of the subsystems (sysconfig(8)) vm or
> proc but n.a.
>
Thanks for all who replied. The solution in this case came from
Curt Smith <curts@compgen.com> and was that I had to put the following
into /etc/sysconfigtab:
| vm:
| # Allows task image to grow larger than physical RAM, as long
| # as you have enough swap/virtual memory.
| vm-nowait-memalloc=1
this allows the process image to grow larger than the physical RAM.
what I still don't understand is why the default is vm-nowait-memalloc=0.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: changing colours
1996-06-21 4:00 ` SUMMARY: " Steffen Ullrich
@ 1996-06-27 4:00 ` Benjamin Jay Robinson
0 siblings, 0 replies; 4+ messages in thread
From: Benjamin Jay Robinson @ 1996-06-27 4:00 UTC (permalink / raw)
In "changing colours," M. R. Bray wrote:
"However I think my problem is a little more fundamental and
simpler, I just need to know what is the name of the
scrollbar/pushbutton shadow in the resources file, and which
resources file it is in - Mwm, DXterm, other ??? Then I can set it
to my chosen colour. I expect it's something like
Mwm*scrollbartopshadowcolor: #xxxxxxxxxxxx"
I notice that when I call up the border color changer (by clicking on
the root window), I get a widget that allows me to independently change
the background and shadow colors for the active and inactive window
borders. When I call up the color changer for the window itself (by
selecting "Options | Window..." from the Session Manager), I just get
to change the background color. Motif bases the scrollbar shadow color
on the background color; thus, background, top shadow, and bottom
shadow should all be coordinated. I don't see a convenient way of
independently changing the shadow color.
It occurs to me, though, that the scrollbars for things like DECterm
aren't part of Motif -- they're resources for the applications
themselves. Sure enough, in the resource file for DECterm
(default.DECterm) there is this line:
DXterm.main.terminal.topShadowColor: {some value}
Changing this might work. (Curiously, it didn't for me, but I didn't
try it aggressively.) The point is, that the color of the scrollbar
widgets may be controlled by the applications, rather than imposed by
the window manager.
The good news is, if you can get DECterm to pay attention to your
default.DECterm file, you've licked the scrollbar color problem. The
bad news is, now you've got to find the resources for all your OTHER
applications!
-Good Luck,
Benjamin Robinson
--
afn46299@afn.org = bjr7@freenet.scri.fsu.edu
My opinions don't represent, and are likely contrary to, those of my employer.
This message may or may not contain sarcastic content; your burden to decide.
"See? Because of me, now they have a warning." -Homer, 1F14
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1996-06-27 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-18 4:00 hardcoded process limits? ( no more memory for process ) Steffen Ullrich
1996-06-21 4:00 ` Sridhar Chirravuri
1996-06-21 4:00 ` SUMMARY: " Steffen Ullrich
1996-06-27 4:00 ` changing colours Benjamin Jay Robinson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox