Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* forrtl error 41: insufficient virtual memory
@ 2000-10-04  4:00 Henry LeRoy Miller, Jr.
  2000-10-04  4:00 ` waco_johnny_d
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Henry LeRoy Miller, Jr. @ 2000-10-04  4:00 UTC (permalink / raw)


I get an error (41: Insufficient virtual memory) when running several
fortran routines that access "large" data files.

I've been reading about maxdsiz, per-proc settings, etc., but even
increasing these values by a factor of 10 (to 10 GB) hasn't helped.

I'm running Digital Unix 4.0D on a Digital Personal 433au workstation.

Can anyone suggest what else I might try, or where else I might find
help?

NB:  these routines run fine on an AIX cluster, Linux cluster, and Linux
standalone.

Thanks,
Henry Miller
h.l.miller@fz-juelich.de




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

* Re: forrtl error 41: insufficient virtual memory
  2000-10-04  4:00 forrtl error 41: insufficient virtual memory Henry LeRoy Miller, Jr.
@ 2000-10-04  4:00 ` waco_johnny_d
  2000-10-04  4:00   ` Henry LeRoy Miller, Jr.
  2000-10-04  4:00   ` Henry LeRoy Miller, Jr.
  2000-10-05  4:00 ` Gerhard Schneider
  2000-10-11  4:00 ` Henry LeRoy Miller, Jr.
  2 siblings, 2 replies; 15+ messages in thread
From: waco_johnny_d @ 2000-10-04  4:00 UTC (permalink / raw)


It would help if you could post the portion of sys_check's output that
shows all the settings of the various system parameters.  There might be
1 or 2 you missed.

You have read and understood and adjusted your system according to the
tuning guide and especially the section on virtual memory, correct?


Sent via Deja.com http://www.deja.com/
Before you buy.



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

* Re: forrtl error 41: insufficient virtual memory
  2000-10-04  4:00 ` waco_johnny_d
@ 2000-10-04  4:00   ` Henry LeRoy Miller, Jr.
  2000-10-04  4:00     ` Stefan Moeding
  2000-10-04  4:00   ` Henry LeRoy Miller, Jr.
  1 sibling, 1 reply; 15+ messages in thread
From: Henry LeRoy Miller, Jr. @ 2000-10-04  4:00 UTC (permalink / raw)




waco_johnny_d@my-deja.com wrote:

> It would help if you could post the portion of sys_check's output that
> shows all the settings of the various system parameters.  There might be
> 1 or 2 you missed.

I'll go try to scoop that up and post it shortly.  There is probably
quite a bit that I've missed, as my knowledge as an administrator
is rather skimpy.  I'm guessing you mean the sections for vm & proc.

Or are the others I should gather?


> You have read and understood and adjusted your system according to the
> tuning guide and especially the section on virtual memory, correct?

Understood? Some, yes, much of it, not really.

I have read many sections from the online docs for DigUnix 4.0D,
from the System Configuration & Tuning and System Administration
manuals.

I adjusted the max-per-proc & per-proc data-size & address-space
variables using the dxkerneltuner, setting them to 10 times larger
than the default.

I set the maxdsiz by editing the file /sys/conf/GAWAIN and then
re-compiling the kernel, copying the new kernel to / and rebooting.

I've made backup copies of both the old kernel and the conf file.

Thanks for the response,
Henry




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

* Re: forrtl error 41: insufficient virtual memory
  2000-10-04  4:00 ` waco_johnny_d
  2000-10-04  4:00   ` Henry LeRoy Miller, Jr.
@ 2000-10-04  4:00   ` Henry LeRoy Miller, Jr.
  2000-10-05  4:00     ` waco_johnny_d
  1 sibling, 1 reply; 15+ messages in thread
From: Henry LeRoy Miller, Jr. @ 2000-10-04  4:00 UTC (permalink / raw)




waco_johnny_d@my-deja.com wrote:

> It would help if you could post the portion of sys_check's output that
> shows all the settings of the various system parameters.  There might be
> 1 or 2 you missed.

I have listed the current values for vm & proc from sys_check at the end
of this message.

My fortran manual describes the run-time error so:

--- Start excerpt ---
severe (41): Insufficient virtual memory

   FOR$IOS_INSVIRMEM. The Compaq Fortran RTL attempted to exceed
     its available virtual memory while dynamically allocating space. To
overcome
     this problem, increase the per-process data limit by using the limit
(C shell) or
     ulimit (Bourne and Korn and bash (L*X ONLY) shell) commands before you

     run this program again (see Section 1.1).

   To determine whether the maximum per-process data size is already
allocated,
     check the value of the maxdsiz parameter in the sysconfigtab or system
configuration
     file. If necessary, increase its value. Changes to do not take effect
until the system
     has been rebooted (you do not need to rebuild the kernel if you modify
sysconfigtab).

   For more information about system configuration parameters on Tru64 UNIX
systems,
     see the Compaq Tru64 UNIX System Tuning and Performance Management
guide.

   Before you try to run this program again, wait until the new system
resources take effect.
--- End excerpt ---

This confuses me a bit, 'cause I only find reference to maxdsiz in the
System Administration,
not in the Tuning & Performance guide.  I've also seen that on the systems
where this
program runs with no troubles, most values output by the limit command come
up as
"unlimited", while on my Dec they are limited.

I've not yet tried increasing my stacksize parameters (maxssiz, dflssiz) -
can they be playing a role?

Again, thanks for your assistance,
Henry


vm:
ubc-minpercent = 10
ubc-maxpercent = 100
ubc-borrowpercent = 20
ubc-maxdirtywrites = 5
ubc-nfsloopback = 0
vm-max-wrpgio-kluster = 32768
vm-max-rdpgio-kluster = 16384
vm-cowfaults = 4
vm-mapentries = 1000000
vm-maxvas = 1073741824
vm-maxwire = 16777216
vm-heappercent = 7
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-swap = 74
vm-page-free-hardswap = 2048
vm-page-free-min = 20
vm-page-free-reserved = 10
vm-page-free-optimal = 74
vm-page-prewrite-target = 256
dump-user-pte-pages = 0
kernel-stack-guard-pages = 1
vm-min-kernel-address = 18446744071562067968
malloc-percpu-cache = 1
contig-malloc-percent = 20
vm-aggressive-swap = 0
vm-map-index-count = 64
vm-map-index-rebalance = 128
vm-map-index-enabled = 1
vm-map-index-hiwat = 4
vm-map-index-lowat = 2
new-wire-method = 1
vm-segment-cache-max = 50
vm-page-lock-count = 0
gh-chunks = 0
gh-min-seg-size = 8388608
gh-fail-if-no-mem = 1
private-text = 0
private-cache-percent = 0

proc:
max-proc-per-user = 64
max-threads-per-user = 256
per-proc-stack-size = 2097152
max-per-proc-stack-size = 33554432
per-proc-data-size = 10737418240
max-per-proc-data-size = 10737418240
max-per-proc-address-space = 10737418240
per-proc-address-space = 10737418240
autonice = 0
autonice-time = 600
autonice-penalty = 4
open-max-soft = 4096
open-max-hard = 4096
ncallout_alloc_size = 8192
round-robin-switch-rate = 0
round_robin_switch_rate = 0
sched-min-idle = 0
sched_min_idle = 0
give-boost = 1
give_boost = 1
maxusers = 32
task-max = 277
thread-max = 552
num-wait-queues = 64
num-timeout-hash-queues = 32
enable_extended_uids = 0
enhanced-core-name = 0
enhanced-core-max-versions = 16







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

* Re: forrtl error 41: insufficient virtual memory
  2000-10-04  4:00   ` Henry LeRoy Miller, Jr.
@ 2000-10-04  4:00     ` Stefan Moeding
  0 siblings, 0 replies; 15+ messages in thread
From: Stefan Moeding @ 2000-10-04  4:00 UTC (permalink / raw)


Hi!

Henry LeRoy Miller, writes:

> I adjusted the max-per-proc & per-proc data-size & address-space
> variables using the dxkerneltuner, setting them to 10 times larger
> than the default.

The values you posted should be large enough. 

One other idea:

How large is your swapspace and what mode of swapping are you using?

The system is capable of running in two different modes: eager and
deferred.  If the link /sbin/swapdefault exists and 'swapon -s' has a
'Reserved' line, you are using eager-mode, which is the default.  You
might want to remove the link and reboot to switch to deferred-mode and
try your application again.

The two modes should be documented in the manuals. In short: 

* eager reserves swapspace when the memory is allocated to be sure it is
  available
* deferred only uses the swapspace when it is really needed.  This might
  result in random processes being killed when you run out of swapspace.


-- 
Stefan



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

* Re: forrtl error 41: insufficient virtual memory
  2000-10-04  4:00   ` Henry LeRoy Miller, Jr.
@ 2000-10-05  4:00     ` waco_johnny_d
  2000-10-05  4:00       ` Gerhard Schneider
                         ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: waco_johnny_d @ 2000-10-05  4:00 UTC (permalink / raw)


Hi Henry,

You've posted only a subset of the total parameter list, so I'll make
recommendations on those.

PARAMETER                     CURRENT  NEW
----------------------------- -------  ----
ubc-minpercent                10       1
ubc-maxpercent                100      4
ubc-borrowpercent             20       2
vm-ubcseqstartpercent         50       3
vm-ubcseqpercent              10       2
maxusers                      32       256 or even 512

The "mystery parameters" you asked about in another thread are located
in the system configuration file as noted by sys_check.  On a system
named, for example, republic.usa.ibm.net, the system configuration file
would be /sys/conf/REPUBLIC.

You have set your address space and data size params to more than the
amount of physical memory you have.  I've never run a system in this
way; I've never set this parameter to more than the actual physical
memory present in the box.  The implication in what you are doing is
that you encourage your program to use swap space as program memory.
This is highly-irregular.  I would think the results of such would be
unpredictable at best, although I'll be the first to admit I am not a
programmer.



Sent via Deja.com http://www.deja.com/
Before you buy.



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

* Re: forrtl error 41: insufficient virtual memory
  2000-10-05  4:00     ` waco_johnny_d
  2000-10-05  4:00       ` Gerhard Schneider
@ 2000-10-05  4:00       ` Henry LeRoy Miller, Jr.
  2000-10-05  4:00       ` Henry LeRoy Miller, Jr.
  2 siblings, 0 replies; 15+ messages in thread
From: Henry LeRoy Miller, Jr. @ 2000-10-05  4:00 UTC (permalink / raw)




waco_johnny_d@my-deja.com wrote:

> You've posted only a subset of the total parameter list, so I'll make
> recommendations on those.
>
> PARAMETER                     CURRENT  NEW
> ----------------------------- -------  ----
> ubc-minpercent                10       1
> ubc-maxpercent                100      4
> ubc-borrowpercent             20       2
> vm-ubcseqstartpercent         50       3
> vm-ubcseqpercent              10       2
> maxusers                      32       256 or even 512

I've made these changes.  It is interesting that you suggested the changes
in the vm-ubc*, since both of these were changed due to suggestions in
sys_check output (40 => 50, 15 => 10).  With your above suggested changes,
I still have the fortran run-time error 41.

I wasn't sure which parameters were of interest, and was hesitant to post
them all - it is a bit of a long list.  However, here they are, after the
above changes.  I've included part of the /sys/conf/GAWAIN kernel
configuration file as well.

Thanks again for your response(s),
Henry


-----------
/sys/conf/GAWAIN

The system configuration file contains descriptive information about the
system and its devices.

ident           "GAWAIN"

options         UERF
options         OSF
options         _LMF_
options         BIN_COMPAT
options         COMPAT_43
options         MACH
options         MACH_IPC_TCACHE
options         MACH_IPC_WWA
options         MACH_IPC_XXXHACK
options         BUFCACHE_STATS
options         INOCACHE_STATS
options         STAT_TIME
options         VAGUE_STATS
options         UFS
options         NFS
options         NFS_SERVER
options         STRKINFO
options         STREAMS
options         LDTTY
options         RPTY
options         INET
options         UIPC
options         SYSV_COFF
options         QUOTA
options         LABELS
options SL
options SNMPINFO
options         DLI
options         BSD_TTY
options BPARM
options         FFM_FS
options PROCFS
options         FFM_FS
options NTP_TIME
options PACKETFILTER
options   PPP
options         DLB
options         TIRDWR
options         TIMOD
options         XTISO
options         CDFS
options DEC_AUDIT
options DEC_ACL
options         ATM
options         ATMIFMP
options         ATM
options         LANE
options         ATM
options         ATMIP
options         ATM
options         UNI3X
options         ATM
options         MSFS

options         UNIX_LOCKS
options         SER_COMPAT
options         RT_PREEMPT
options         RT_SCHED
options         RT_SCHED_RQ
options         RT_PML
options         RT_TIMER
options         RT_SEM
options         RT_CSEM
options         RT_IPC

options         PWRMGR_ENABLED
makeoptions     CDEBUGOPTS="-g3"
makeoptions     CCOMPRESS="-compress"
makeoptions     PROFOPTS="-DPROFILING -DPROFTYPE=4"

processors      16

dfldsiz         134217728
maxdsiz         1073741824
dflssiz         2097152
maxssiz         33554432
cpu             "DECST30"
maxusers        32
config          vmunix  swap generic
----------

Current attribute values for the cm subsystem:

cm:
max_callbacks = 341
reg_tbl = 1100 bytes of binary data read
defaults = attribute does not allow this operation



Current attribute values for the generic subsystem:

generic:
clock-frequency = 1024
booted_kernel = vmunix
booted_args = vmunix
lockmode = 0
lockdebug = 0
locktimeout = 15
max-lock-per-thread = 16
lockmaxcycles = 0
rt_preempt_opt = 0
rt-preempt-opt = 0
cpu_enable_mask = 18446744073709551615
cpu-enable-mask = 18446744073709551615
binlog-buffer-size = 0
msgbuf_size = 16384
message-buffer-size = 16384
dump-sp-threshold = 4096
lite-system = 0
physio_max_coalescing = 65536
kmem-debug = 0
kmem-debug-size-mask = 0
kmem-protected-size = 0
kmem-protected-lowat = 1000
kmem-protected-hiwat = 0
kmem-protected-kmempercent = 75
kmem-audit-count = 1024
old-obreak = 1
user_cfg_pt = 45000
memstr-buf-size = 0
memstr-start-addr = 0
memstr-end-addr = 0
insecure-bind = 0



Current attribute values for the io subsystem:

io:
bdevsw-size = 70
cdevsw-size = 125
max-iosize-read = 65536
max-iosize-write = 65536
basic-dma-window-size = 0
dma-sg-map-unload-zero = 2
device_switch_inited = 1
device_switch_stale = 0
device_switch_print = 0
cam_ccb_pool_size = 200
cam_ccb_low_water = 100
cam_ccb_increment = 50



Current attribute values for the ipc subsystem:

ipc:
msg-max = 8192
msg-mnb = 16384
msg-mni = 64
msg-tql = 40
shm-max = 67108864
shm-min = 1
shm-mni = 1024
shm-seg = 256
sem-mni = 16
sem-msl = 25
sem-opm = 10
sem-ume = 10
sem-vmx = 32767
sem-aem = 16384
num-of-sems = 60
max-kernel-ports = 38615
port-hash-max-num = 1930750
port-reserved-max-num = 38615
set-max-num = 6405
ssm-threshold = 8388608
ssm-enable-core-dump = 1



Current attribute values for the proc subsystem:

proc:
max-proc-per-user = 64
max-threads-per-user = 256
per-proc-stack-size = 2097152
max-per-proc-stack-size = 33554432
per-proc-data-size = 1073741824
max-per-proc-data-size = 1073741824
max-per-proc-address-space = 1073741824
per-proc-address-space = 1073741824
autonice = 0
autonice-time = 600
autonice-penalty = 4
open-max-soft = 4096
open-max-hard = 4096
ncallout_alloc_size = 8192
round-robin-switch-rate = 0
round_robin_switch_rate = 0
sched-min-idle = 0
sched_min_idle = 0
give-boost = 1
give_boost = 1
maxusers = 256
task-max = 2069
thread-max = 4136
num-wait-queues = 256
num-timeout-hash-queues = 256
enable_extended_uids = 0
enhanced-core-name = 0
enhanced-core-max-versions = 16



Current attribute values for the sec subsystem:

sec:
audit-buffer-size = 16
audit-site-events = 64
nfs-flatten-mode = 0
ufs-sec-proplist-max-entry = 1548
ufs-proplist-max-entry = 8192



Current attribute values for the socket subsystem:

socket:
sbcompress_threshold = 0
sb_max = 131072
sobacklog_drops = 0
sobacklog_hiwat = 1
somaxconn = 1024
somaxconn_drops = 0
sominconn = 0
tss_disable = 0
tssmap_min_len = 1024
tssmap_max_pages = 16384
tssmap_wireubc = 0
tssmap_quicksum = 0



Current attribute values for the rt subsystem:

rt:
aio-max-num = 716
aio-task-max-num = 333
aio-listio-max-num = 64
aio-max-percent = 1
aio-max-retry = 0
aio-retry-scale = 4
sigqueue-max-num = 64
rttimer-max-num = 32
aio-percpu-data = 0



Current attribute values for the bsd_tty subsystem:

bsd_tty:
nclist = 120



Current attribute values for the xpr subsystem:

xpr:



Current attribute values for the dli subsystem:

dli:
must-be-root = 1
max-ifq-length = 512



Current attribute values for the ffm_fs subsystem:

ffm_fs:



Current attribute values for the atm subsystem:

atm:
resvtimeo = 30
sysresvlim = attribute does not allow this operation
fsysresvlim = 10
bsysresvlim = 10
cmmdebug = 0
timesync = 0



Current attribute values for the atmip subsystem:

atmip:



Current attribute values for the lane subsystem:

lane:
lane_debug = 0
nelan = 4
arp_emevent = 0
ctrl_emevent = 0
data_emevent = 0
upper_emevent = 0



Current attribute values for the uni3x subsystem:

uni3x:
unidebug = 64
timer_resolution = 10



Current attribute values for the atmifmp subsystem:

atmifmp:
resend = 1
easy = 4
lifetime = 5
buckets = 10
debuglevel = 0
reclassify = 1
dumplen = 0
usetype1 = 0
bitmask = 15
ackinterval = 5
multicast = 2
interruptcontext = 0



Current attribute values for the bparm subsystem:

bparm:
bootdef_dev = SCSI 0 1009 0 1 100 0 0
boot_dev = SCSI 0 1009 0 1 100 0 0
boot_osflags =



Current attribute values for the advfs subsystem:

advfs:
AdvfsCacheMaxPercent = 7
AdvfsMinFragGrps = 16
AdvfsMaxFragGrps = 48
AdvfsAccessMaxPercent = 80
AdvfsAccessCleanupPercent = 33
AdvfsSyncMmapPages = 1
AdvfsMaxDevQLen = 80
AdvfsFavorBlockingQueue = 1
AdvfsReadyQLim = 16384



Current attribute values for the net subsystem:

net:
netisrthreads = 1
netisrwakeupthreshold = 1
nslip = 1
arptab_nb = 37



Current attribute values for the ppp subsystem:

ppp:
nppp = 1
lock_debug = 0



Current attribute values for the inet subsystem:

inet:
inifaddr_hsize = 32
ipdefttl = 64
ipdirected_broadcast = 0
ipforwarding = 0
ipfragttl = 60
ipgateway = 0
ipport_userreserved = 5000
ipsendredirects = 1
ipsrcroute = 1
pmtu_decrease_intvl = 1200
pmtu_enabled = 1
pmtu_increase_intvl = 240
pmtu_rt_check_intvl = 20
subnetsarelocal = 1
tcbhashsize = 32
tcbquicklisten = 0
tcp_compat_42 = 1
tcp_cwnd_segments = 2
tcp_dont_winscale = 0
tcp_keepalive_default = 0
tcp_keepcnt = 8
tcp_keepidle = 14400
tcp_keepinit = 150
tcp_keepintvl = 150
tcp_msl = 60
tcp_mssdflt = 536
tcpnodelack = 0
tcp_recvspace = 32768
tcp_rexmit_interval_min = 2
tcprexmtthresh = 3
tcp_rttdflt = 3
tcp_sendspace = 32768
tcp_ttl = 60
tcptwreorder = 1
tcp_urgent_42 = 1
udpcksum = 1
udp_recvspace = 41600
udp_sendspace = 9216
udp_ttl = 30



Current attribute values for the snmpinfo subsystem:

snmpinfo:
snmp_devs = 12



Current attribute values for the bufcall subsystem:

bufcall:



Current attribute values for the streams subsystem:

streams:
strmsgsz = 12288
nstrpush = 9



Current attribute values for the dlb subsystem:

dlb:



Current attribute values for the kinfo subsystem:

kinfo:
kinfo_streams = 10



Current attribute values for the strstd subsystem:

strstd:



Current attribute values for the timod subsystem:

timod:



Current attribute values for the tirdwr subsystem:

tirdwr:



Current attribute values for the ldtty subsystem:

ldtty:



Current attribute values for the xtiso subsystem:

xtiso:



Current attribute values for the pts subsystem:

pts:
nptys = 255



Current attribute values for the ufs subsystem:

ufs:
inode-hash-size = 512
create-fastlinks = 1
ufs-blkpref-lookbehind = 8
nmount = 128



Current attribute values for the vfs subsystem:

vfs:
name-cache-size = 5957
name-cache-hash-size = 256
buffer-hash-size = 512
special-vnode-alias-tbl-size = 64
bufcache = 3
path-num-max = 64
sys-v-mode = 0
ucred-max = 256
nvnode = 2708
max-vnodes = 40395
min-free-vnodes = 2708
vnode-age = 120
namei-cache-valid-time = 1200
max-free-file-structures = 0
max-ufs-mounts = 1000
vnode-deallocation-enable = 1
pipe-maxbuf-size = 65536
pipe-single-write-max = -1
pipe-databuf-size = 8192
pipe-max-bytes-all-pipes = 81920000
noadd-exec-access = 0
fifo-do-adaptive = 1



Current attribute values for the vm subsystem:

vm:
ubc-minpercent = 1
ubc-maxpercent = 4
ubc-borrowpercent = 2
ubc-maxdirtywrites = 5
ubc-nfsloopback = 0
vm-max-wrpgio-kluster = 32768
vm-max-rdpgio-kluster = 16384
vm-cowfaults = 4
vm-mapentries = 1000000
vm-maxvas = 1073741824
vm-maxwire = 16777216
vm-heappercent = 7
vm-vpagemax = 1310720
vm-segmentation = 1
vm-ubcpagesteal = 24
vm-ubcdirtypercent = 10
vm-ubcseqstartpercent = 3
vm-ubcseqpercent = 2
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-swap = 74
vm-page-free-hardswap = 2048
vm-page-free-min = 20
vm-page-free-reserved = 10
vm-page-free-optimal = 74
vm-page-prewrite-target = 256
dump-user-pte-pages = 0
kernel-stack-guard-pages = 1
vm-min-kernel-address = 18446744071562067968
malloc-percpu-cache = 1
contig-malloc-percent = 20
vm-aggressive-swap = 0
vm-map-index-count = 64
vm-map-index-rebalance = 128
vm-map-index-enabled = 1
vm-map-index-hiwat = 4
vm-map-index-lowat = 2
new-wire-method = 1
vm-segment-cache-max = 50
vm-page-lock-count = 0
gh-chunks = 0
gh-min-seg-size = 8388608
gh-fail-if-no-mem = 1
private-text = 0
private-cache-percent = 0



Current attribute values for the pwrmgr subsystem:

pwrmgr:
default_pwrmgr_state = 1
cpu_slowdown = 1
disk_spindown = 1
disk_dwell_time = 20
graphics_powerdown = 1
graphics_standby_dwell = 20
graphics_suspend_dwell = 20
graphics_off_dwell = 60



Current attribute values for the cma_dd subsystem:

cma_dd:
CMA_Option = attribute does not allow this operation
hw_database_debug = 0



Current attribute values for the cam_disk subsystem:

cam_disk:
initialized = 1
max_spinups_per_bus = 2
disk_no_response_time = 14
disk_dualcntr_no_resp_time = 30
disk_bus_resp_time_enable = 0
pwrmgmt_poll_period = 30
disk_busy_timeout = 10



Current attribute values for the cam_tape subsystem:

cam_tape:
initialized = 1
open_behaviour = 1
fixed_block_padding = 0



Current attribute values for the cam subsystem:

cam:
cam_initialized_flag = 1
cam_printdb_flag = 0
cam_param_1 = 1
number_of_SCSI_buses = 0
num_peripheral_drivers = 2
num_old_peripheral_drivers = 0



Current attribute values for the isp subsystem:

isp:
isp_fw_file = /dev/qlogic



Current attribute values for the isa subsystem:

isa:
Module_Config_Name = attribute does not allow this operation
Module_Type = attribute does not allow this operation
ISA_Option = attribute does not allow this operation
ISA_Developer_Debug = 0
Adapt_Config = 0
Confl1 = -4398040525464



Current attribute values for the ace subsystem:

ace:
dcd_timer = 2



Current attribute values for the pci subsystem:

pci:
Module_Config_Name = attribute does not allow this operation
Module_Type = attribute does not allow this operation
PCI_Option = attribute does not allow this operation
PCI_Developer_Debug = 0
Adapt_Config = 0
Confl1 = 0



Current attribute values for the ws subsystem:

ws:
ws_graphics_flag = attribute does not allow this operation



Current attribute values for the gpc_input subsystem:

gpc_input:
kbd_scancode = 3



Current attribute values for the vga subsystem:

vga:
PCI_Option = attribute does not allow this operation
ISA_Option = attribute does not allow this operation
EISA_Option = attribute does not allow this operation



Current attribute values for the ddr subsystem:

ddr:



Current attribute values for the kio subsystem:

subsystem error: Function not implemented



Current attribute values for the kds subsystem:

kds:
kds_version = 1
kds_inited = 3
kds_print_flag = 0
kds_num_db = 4
kds_corrupt = 0
kds_bio_read = 2
kds_kio_read = 0
kds_kio_write = 2



Current attribute values for the lan_common subsystem:

lan_common:
Module_Config_Name = lan_common
Subsystem_Description = LAN Driver Common Routines
Subsystem_Version = 1
Masqueraded = 0



Current attribute values for the ingr subsystem:

ingr:
Module_Config_Name = attribute does not allow this operation
CMA_Option = attribute does not allow this operation
Module_Path = attribute does not allow this operation
debug = 0
devel_debug = 0
PCI_Option = attribute does not allow this operation
unit_max = 4
unit_num = 1
verbose_boot_msg = 0
use_alt_font = 0
force_102_mode = 0
smp_mode = 1
quad_quad_mode = 2
dma_write_min_size = 512
dma_sub_mode = 0
use_careful_pio = 1
slow_timeout = 8
fast_timeout = 15



Current attribute values for the envmon subsystem:

envmon:
env_current_temp = 2
env_high_temp_thresh = 2
env_fan_status = 2
env_ps_status = 2
env_supported = 0





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

* Re: forrtl error 41: insufficient virtual memory
  2000-10-05  4:00     ` waco_johnny_d
  2000-10-05  4:00       ` Gerhard Schneider
  2000-10-05  4:00       ` Henry LeRoy Miller, Jr.
@ 2000-10-05  4:00       ` Henry LeRoy Miller, Jr.
  2000-10-05  4:00         ` waco_johnny_d
  2 siblings, 1 reply; 15+ messages in thread
From: Henry LeRoy Miller, Jr. @ 2000-10-05  4:00 UTC (permalink / raw)




waco_johnny_d@my-deja.com wrote:

> You have set your address space and data size params to more than the
> amount of physical memory you have.  I've never run a system in this
> way; I've never set this parameter to more than the actual physical
> memory present in the box.  The implication in what you are doing is
> that you encourage your program to use swap space as program memory.
> This is highly-irregular.  I would think the results of such would be
> unpredictable at best, although I'll be the first to admit I am not a
> programmer.

Huh.  Here again I see that I am surely neither a real system administor
nor a real programmer!  Ah, the wonderful life of a jack-of-all-trades
(read: hacker).

I had thought (naively) that the entire idea behind swap space was to
allow the aggregate of memory required by running processes to exceed the
amount of physical memory.  By physical memory, I mean RAM - or am I
incorrectly using terminology?  I had assumed this meant my programs, as
well as the system and other user processes.

I'm now inferring from what you wrote above that I should perhaps
encourage (require?) my programs to use physical memory (RAM?) and let the
other processes worry using swap space to augment whatever physical memory
space was left.  Is this a correct inferrence?

Thanks,
Henry
h.l.miller@fz-juelich.de






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

* Re: forrtl error 41: insufficient virtual memory
  2000-10-05  4:00       ` Henry LeRoy Miller, Jr.
@ 2000-10-05  4:00         ` waco_johnny_d
  0 siblings, 0 replies; 15+ messages in thread
From: waco_johnny_d @ 2000-10-05  4:00 UTC (permalink / raw)



> I had thought (naively) that the entire idea behind swap space was to
> allow the aggregate of memory required by running processes to exceed
> the amount of physical memory.  By physical memory, I mean RAM - or am
> I incorrectly using terminology?  I had assumed this meant
> my programs, as well as the system and other user processes.

Right, but note the plurals which you have used correctly, as you have
done below:

> I'm now inferring from what you wrote above that I should perhaps
> encourage (require?) my programs to use physical memory (RAM?) and let
> the other processes worry using swap space to augment whatever
> physical memory space was left.  Is this a correct inferrence?

Right again.  *EACH* program (I believe) should be required, at the very
least for performance reasons, NOT to consume more than AVAILABLE (use
vmstat) physical memory.  Let's assume you have 10 programs and they're
going to run concurrently on a box with 100MB of available memory as
determined from vmstat.  EACH program could eat 95MB (you have to leave
a little so as not to trigger the "swap predictor" for one program
instance) for a total of just shy of 1GB, but I would feel very
uncomfortable if just ONE program ate up more than 95MB.  If that were
the case, the program itself would get swapped out, most certainly NOT a
good thing.  Even if you got it to work, it's very bad programming/admin
practice and I can guarantee you no I.S. manager would allow it on a
production system.

Understand that with 10 of those 95MB programs, the system would slow to
a turtle's pace because of the swapping overhead, but each program at
any given time would not be consuming more than its size in physical
memory.

Anyway, yeah, try limiting your use of physical memory to what vmstat
says you have on the system, less 5-10MB.  I believe that's the key.


Sent via Deja.com http://www.deja.com/
Before you buy.



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

* Re: forrtl error 41: insufficient virtual memory
  2000-10-05  4:00     ` waco_johnny_d
@ 2000-10-05  4:00       ` Gerhard Schneider
  2000-10-05  4:00         ` waco_johnny_d
  2000-10-05  4:00       ` Henry LeRoy Miller, Jr.
  2000-10-05  4:00       ` Henry LeRoy Miller, Jr.
  2 siblings, 1 reply; 15+ messages in thread
From: Gerhard Schneider @ 2000-10-05  4:00 UTC (permalink / raw)


waco_johnny_d@my-deja.com wrote:

: You have set your address space and data size params to more than the
: amount of physical memory you have.  I've never run a system in this
: way; I've never set this parameter to more than the actual physical
: memory present in the box.  The implication in what you are doing is
: that you encourage your program to use swap space as program memory.
: This is highly-irregular.  I would think the results of such would be
: unpredictable at best, although I'll be the first to admit I am not a
: programmer.

We're running:

2 GB RAM
32 GB SWAP

Jobs allocating 16 GB memory.

Absolutely no problem for Tru64 (all the day).

I don't know of anybody running big Finite Element analyses, who's got the
needed amount of real RAM (perhaps not counting Los Alamos :-)

                                                     GS

-- 
Gerhard Schneider                               e-Mail: gs@ilfb.tuwien.ac.at 
Institute of Light Weight Structures (E317)     Tel.:   +43 1 58801 31716      
Vienna University of Technology / Austria       Fax:    +43 1 58801 31799
A-1040 Wien, Gusshausstrasse 27-29              http://ilfb.tuwien.ac.at/~gs/



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

* Re: forrtl error 41: insufficient virtual memory
  2000-10-04  4:00 forrtl error 41: insufficient virtual memory Henry LeRoy Miller, Jr.
  2000-10-04  4:00 ` waco_johnny_d
@ 2000-10-05  4:00 ` Gerhard Schneider
  2000-10-06  4:00   ` Henry LeRoy Miller, Jr.
  2000-10-11  4:00 ` Henry LeRoy Miller, Jr.
  2 siblings, 1 reply; 15+ messages in thread
From: Gerhard Schneider @ 2000-10-05  4:00 UTC (permalink / raw)


Henry LeRoy Miller, Jr. <h.l.miller@fz-juelich.de> wrote:
: I get an error (41: Insufficient virtual memory) when running several
: fortran routines that access "large" data files.

: I've been reading about maxdsiz, per-proc settings, etc., but even
: increasing these values by a factor of 10 (to 10 GB) hasn't helped.

: I'm running Digital Unix 4.0D on a Digital Personal 433au workstation.

Stupid question of the day:

Are you using f90? The old f77 cannot allocate data segments > 2 GB.

                                                   GS

-- 
Gerhard Schneider                               e-Mail: gs@ilfb.tuwien.ac.at 
Institute of Light Weight Structures (E317)     Tel.:   +43 1 58801 31716      
Vienna University of Technology / Austria       Fax:    +43 1 58801 31799
A-1040 Wien, Gusshausstrasse 27-29              http://ilfb.tuwien.ac.at/~gs/



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

* Re: forrtl error 41: insufficient virtual memory
  2000-10-05  4:00       ` Gerhard Schneider
@ 2000-10-05  4:00         ` waco_johnny_d
  0 siblings, 0 replies; 15+ messages in thread
From: waco_johnny_d @ 2000-10-05  4:00 UTC (permalink / raw)


Thank you, Gerhard.  I am glad to hear this is ok to do.


Sent via Deja.com http://www.deja.com/
Before you buy.



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

* Re: forrtl error 41: insufficient virtual memory
  2000-10-05  4:00 ` Gerhard Schneider
@ 2000-10-06  4:00   ` Henry LeRoy Miller, Jr.
  0 siblings, 0 replies; 15+ messages in thread
From: Henry LeRoy Miller, Jr. @ 2000-10-06  4:00 UTC (permalink / raw)




Gerhard Schneider wrote:

> Henry LeRoy Miller, Jr. <h.l.miller@fz-juelich.de> wrote:
> : I get an error (41: Insufficient virtual memory) when running several
> : fortran routines that access "large" data files.
>
> : I've been reading about maxdsiz, per-proc settings, etc., but even
> : increasing these values by a factor of 10 (to 10 GB) hasn't helped.
>
> : I'm running Digital Unix 4.0D on a Digital Personal 433au workstation.
>
> Stupid question of the day:
>
> Are you using f90? The old f77 cannot allocate data segments > 2 GB.

Not so stupid, but yes, I'm using f90.  As I dig further into this problem, I
become more and more confused, although I also learn and understand more as
well.

More pieces of the puzzle:
 - the allocate call in the fortran code should only be requesting at most space
for an array of about 100 real numbers.  This seems like a rather small memory
request to me.
 - the file in question is a netcdf file.  I'm exploring the issue to make sure
my installation of the netcdf package on my Dec is substantively different from
that on the other platforms, where these fortran programs were developed, and
run with no problems.
 - I'm learning to use ladebug, to analyze just where the fault occurs, and
perhaps find some clues to the origin of this problem.

At this point, I'm still wondering:
 - is it the system configuration?
 - is it the fortran code?
 - is it the netcdf implimentation?
 - or is it all or none of these?

Thanks for your help, and to Waco Johnny D and Stefan as well, for taking the
time to make suggestions and help me learn.

Henry
h.l.miller@fz-juelich.de




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

* Re: forrtl error 41: insufficient virtual memory
  2000-10-04  4:00 forrtl error 41: insufficient virtual memory Henry LeRoy Miller, Jr.
  2000-10-04  4:00 ` waco_johnny_d
  2000-10-05  4:00 ` Gerhard Schneider
@ 2000-10-11  4:00 ` Henry LeRoy Miller, Jr.
  2000-10-11  4:00   ` waco_johnny_d
  2 siblings, 1 reply; 15+ messages in thread
From: Henry LeRoy Miller, Jr. @ 2000-10-11  4:00 UTC (permalink / raw)


I'd just like to report that my problem has been "solved".

It was actually not a problem with my virtual memory settings, limits, or
other system configuration aspects.  It turned out to be a problem with a
fortran 90 allocatable array reference in the module interface file for
netcdf, in conjunciton with my compiler.  I've got things now working, and
am making reports to the netcdf folks (unidata).  If anyone is interested
in the details, please email me and I'd be glad to share them.

I want to thank all of you who responded by email or newsgroup.  I actually
did learn a bit more about sys admin - not so hard to do when starting from
relatively complete ignorance!  ; )

Once again,
thanks,
Henry Miller
h.l.miller@fz-juelich.de

"Henry LeRoy Miller, Jr." wrote:

> I get an error (41: Insufficient virtual memory) when running several
> fortran routines that access "large" data files.
>
> I've been reading about maxdsiz, per-proc settings, etc., but even
> increasing these values by a factor of 10 (to 10 GB) hasn't helped.
>
> I'm running Digital Unix 4.0D on a Digital Personal 433au workstation.
>
> Can anyone suggest what else I might try, or where else I might find
> help?
>
> NB:  these routines run fine on an AIX cluster, Linux cluster, and Linux
> standalone.
>
> Thanks,
> Henry Miller
> h.l.miller@fz-juelich.de




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

* Re: forrtl error 41: insufficient virtual memory
  2000-10-11  4:00 ` Henry LeRoy Miller, Jr.
@ 2000-10-11  4:00   ` waco_johnny_d
  0 siblings, 0 replies; 15+ messages in thread
From: waco_johnny_d @ 2000-10-11  4:00 UTC (permalink / raw)


Congratulations, Henry.  Glad you got it working!

WJD


Sent via Deja.com http://www.deja.com/
Before you buy.



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

end of thread, other threads:[~2000-10-11  4:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-04  4:00 forrtl error 41: insufficient virtual memory Henry LeRoy Miller, Jr.
2000-10-04  4:00 ` waco_johnny_d
2000-10-04  4:00   ` Henry LeRoy Miller, Jr.
2000-10-04  4:00     ` Stefan Moeding
2000-10-04  4:00   ` Henry LeRoy Miller, Jr.
2000-10-05  4:00     ` waco_johnny_d
2000-10-05  4:00       ` Gerhard Schneider
2000-10-05  4:00         ` waco_johnny_d
2000-10-05  4:00       ` Henry LeRoy Miller, Jr.
2000-10-05  4:00       ` Henry LeRoy Miller, Jr.
2000-10-05  4:00         ` waco_johnny_d
2000-10-05  4:00 ` Gerhard Schneider
2000-10-06  4:00   ` Henry LeRoy Miller, Jr.
2000-10-11  4:00 ` Henry LeRoy Miller, Jr.
2000-10-11  4:00   ` waco_johnny_d

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