Hello all,
We are running a 2 gig Solaris10 system. The only application that's running on the system is ours which allocates 850MB through malloc at one shot.
For some reason this malloc keeps failing saying "Resource Temporarily Unavilable"
After some investigation, found that it goes away when a swap file is added. But that is not the goal. We would want the app to run without any disk i/o or any page reloads. Everything should be off the physical memory.
Any inputs?
The config is as below
# swap -s
total: 52040k bytes allocated + 4648k reserved = 56688k used, 1542344k available
# swap -l
No swap devices configured
# vmstat 2
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr s0 -- -- -- in sy cs us sy id
0 0 0 1498888 1706336 2 17 6 0 0 0 4 1 0 0 0 2361 234 271 0 0 100
0 0 0 1542152 1561576 0 4 0 0 0 0 0 0 0 0 0 2090 222 68 0 0 100
0 0 0 1542080 1561504 0 0 0 0 0 0 0 0 0 0 0 2078 106 55 0 0 100
# prtconf | grep Memory
Memory size: 2040 Megabytes
Assuming the OS needs 700MB to stand up and 300MB for other misc purposes, there is still 1 gig left, why does it need a swap file? Where has all my memory gone
# prstat -a
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
542 root 4816K 4808K cpu1 59 0 0:00:00 0.0% prstat/1
445 root 2744K 2224K sleep 59 0 0:00:18 0.0% vmstat/1
194 root 2112K 1480K sleep 59 0 0:00:00 0.0% sac/1
168 root 2704K 1328K sleep 59 0 0:00:00 0.0% cron/1
325 root 6904K 5384K sleep 59 0 0:00:00 0.0% sshd/1
203 root 3728K 2112K sleep 59 0 0:00:00 0.0% syslogd/13
183 daemon 2712K 1888K sleep 59 0 0:00:00 0.0% rpcbind/1
92 root 4248K 3680K sleep 59 0 0:00:00 0.0% nscd/24
193 root 1360K 1160K sleep 59 0 0:00:00 0.0% utmpd/1
529 root 1336K 1232K sleep 59 0 0:00:00 0.0% sh/1
186 root 9608K 8000K sleep 59 0 0:00:02 0.0% fmd/16
70 root 2560K 1864K sleep 59 0 0:00:00 0.0% syseventd/12
9 root 7072K 5192K sleep 59 0 0:00:08 0.0% svc.configd/12
7 root 15M 12M sleep 59 0 0:00:07 0.0% svc.startd/12
96 daemon 4360K 3000K sleep 59 0 0:00:00 0.0% kcfd/5
NPROC USERNAME SIZE RSS MEMORY TIME CPU
31 root 144M 101M 5.1% 0:00:38 0.0%
2 daemon 7072K 4888K 0.2% 0:00:00 0.0%
Any help would be great.
Thanks
