* Alpha OSF/1 1.3A big proc, over-paging
@ 1994-01-10 22:26 Dan Mosedale
1994-01-11 15:32 ` Steve Thompson
1994-01-11 16:29 ` Dave Cherkus
0 siblings, 2 replies; 4+ messages in thread
From: Dan Mosedale @ 1994-01-10 22:26 UTC (permalink / raw)
My system: DEC 3000/400.
> uname -smvr
OSF1 V1.3 112 alpha
I'm running Crack 4.1 on it (with some patches posted to the OSF
managers list a while back). The machine is paging like crazy:
Virtual Memory Statistics: (pagesize = 8192)
procs memory pages intr cpu
r w u act free wire fault cow zero react pin pout in sy cs us sy id
2 42 25 2604 88 1062 12M 73K 125K 10M 11M 1M 489 35 233 16 5 80
2 42 25 2602 82 1066 200 5 61 57 87 33 608 25 247 0 7 93
2 42 25 2590 88 1066 124 0 47 29 66 40 543 32 220 0 8 91
2 42 25 2593 84 1066 183 0 94 19 77 34 613 13 240 0 6 93
2 42 25 2596 85 1066 139 0 47 18 78 35 565 17 228 0 6 93
2 42 25 2597 85 1066 172 0 94 28 65 34 556 36 236 1 8 91
2 42 25 2605 69 1066 141 0 47 19 78 31 582 11 252 0 6 94
The thing is, syd shows the machine as having 30 megs of free space:
OSF1 V1.3 -- DEC OSF/1 System Information Display Vers. 3.1 -- 14:20:11
CPU Mode Total Current Processes devintr 1884 freeswp 39128
User 0% 0% Runnable 3 cntxtsw 758 freemem 30232
Nice 15% 0% Sleeping 11 syscall 186 pagein 100
Kernel 4% 6% Inactive 28 forks 0 pageout 54
Idle 79% 92% UnintWait 5 vforks 0 swapio -2
Load 0.00 0.02 0.02 Stopped 0 ttinch 0 dkxfers 180
Uptime 3 days, 4:11 Other 0 ttoutch 1324 dkblcks 1925
There is plenty of swap space:
Total swap allocation:
Allocated space: 16384 pages (128MB)
Reserved space: 11676 pages ( 71%)
Available space: 4708 pages ( 28%)
Limit reports that programs run as me get started with the following
rlimits, so I assume these are what Crack is started with (though I
don't know of any way to verify it):
> limit
cputime unlimited
filesize unlimited
datasize 131072 kbytes
stacksize 2048 kbytes
coredumpsize 20480 kbytes
memoryuse unlimited
descriptors 4096
The kernel seems to be built with decent default rlimit sizes:
dfldsiz 134217728
maxdsiz 1073741824
dflssiz 2097152
maxssiz 33554432
Furthermore, ps shows that the virtual memory size being used by Crack is
just slightly more than half of the limit:
> ps -o VFMT -p 975
PID TT STAT TIME SL PAGEIN VSZ RSS %CPU %MEM COMMAND
975 ?? U N 759:13.00 0 0 71.2M 32.6 0.0 52.5 /share/s...
Now the PAGEIN would seem to indicate that it's not actually crack
that is causing the paging. However, it seems clear to me that it is.
Furthermore, using "ps -O RUSAGE -e" gives a list of all processes
except kernel processes, and every single process has 0 in the PAGEIN
column, which doesn't make much sense to me at all.
If anyone could suggest why the machine is paging with so much free
memory, and why ps doesn't seem to think any of the processes are
having PAGEINs, I'd be extremely grateful. Does this look like an OS
bug, or this something I'm missing here?
Thanks
--
Dan Mosedale, Systems Admin Email: mosedale@genome.Stanford.EDU
Stanford Genetics Department
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Alpha OSF/1 1.3A big proc, over-paging
1994-01-10 22:26 Alpha OSF/1 1.3A big proc, over-paging Dan Mosedale
@ 1994-01-11 15:32 ` Steve Thompson
1994-01-11 16:29 ` Dave Cherkus
1 sibling, 0 replies; 4+ messages in thread
From: Steve Thompson @ 1994-01-11 15:32 UTC (permalink / raw)
In article <2gskmk$eat@nntp2.Stanford.EDU>, mosedale@fafner.Stanford.EDU (Dan Mosedale) writes:
>The thing is, syd shows the machine as having 30 megs of free space:
>
syd's estimate of free memory is way off. I have a 3000/500 with 192MB
memory, and syd has never shown less than 100MB free even when it
later displays a process with a resident size of 150MB.
Steve
---------------------------------------------------------------------------
Steve Thompson, System Mangler Internet: thompson@cheme.cornell.edu
School of Chemical Engineering Bitnet: thompson@crnlchme
Olin Hall, Cornell University Phone: (607) 255 5573
Ithaca NY 14853 FAX: (607) 255 9166
---------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Alpha OSF/1 1.3A big proc, over-paging
1994-01-10 22:26 Alpha OSF/1 1.3A big proc, over-paging Dan Mosedale
1994-01-11 15:32 ` Steve Thompson
@ 1994-01-11 16:29 ` Dave Cherkus
1994-01-18 23:16 ` Dan Mosedale
1 sibling, 1 reply; 4+ messages in thread
From: Dave Cherkus @ 1994-01-11 16:29 UTC (permalink / raw)
>From: mosedale@fafner.Stanford.EDU (Dan Mosedale)
>Newsgroups: comp.unix.osf.osf1
>Subject: Alpha OSF/1 1.3A big proc, over-paging
>Date: 10 Jan 1994 22:26:28 GMT
>Organization: Stanford University Genetics Department
>
>My system: DEC 3000/400.
>
> > uname -smvr
> OSF1 V1.3 112 alpha
>
>I'm running Crack 4.1 on it (with some patches posted to the OSF
>managers list a while back). The machine is paging like crazy:
>
>Virtual Memory Statistics: (pagesize = 8192)
> procs memory pages intr cpu
> r w u act free wire fault cow zero react pin pout in sy cs us sy id
> 2 42 25 2604 88 1062 12M 73K 125K 10M 11M 1M 489 35 233 16 5 80
> 2 42 25 2602 82 1066 200 5 61 57 87 33 608 25 247 0 7 93
> 2 42 25 2590 88 1066 124 0 47 29 66 40 543 32 220 0 8 91
> 2 42 25 2593 84 1066 183 0 94 19 77 34 613 13 240 0 6 93
> 2 42 25 2596 85 1066 139 0 47 18 78 35 565 17 228 0 6 93
> 2 42 25 2597 85 1066 172 0 94 28 65 34 556 36 236 1 8 91
> 2 42 25 2605 69 1066 141 0 47 19 78 31 582 11 252 0 6 94
I agree.
>The thing is, syd shows the machine as having 30 megs of free space:
>
> OSF1 V1.3 -- DEC OSF/1 System Information Display Vers. 3.1 -- 14:20:11
>CPU Mode Total Current Processes devintr 1884 freeswp 39128
>User 0% 0% Runnable 3 cntxtsw 758 freemem 30232
>Nice 15% 0% Sleeping 11 syscall 186 pagein 100
>Kernel 4% 6% Inactive 28 forks 0 pageout 54
>Idle 79% 92% UnintWait 5 vforks 0 swapio -2
>Load 0.00 0.02 0.02 Stopped 0 ttinch 0 dkxfers 180
>Uptime 3 days, 4:11 Other 0 ttoutch 1324 dkblcks 1925
I don't know how syd computes this. I believe vmstat more accurately
reflects the problem you are having (i.e about 80 free main memory
pages out of 2500).
>There is plenty of swap space:
>
>Total swap allocation:
> Allocated space: 16384 pages (128MB)
> Reserved space: 11676 pages ( 71%)
> Available space: 4708 pages ( 28%)
All this means is that your processes won't be killed for lack
of swap space.
>Limit reports that programs run as me get started with the following
>rlimits, so I assume these are what Crack is started with (though I
>don't know of any way to verify it):
>
>> limit
>cputime unlimited
>filesize unlimited
>datasize 131072 kbytes
>stacksize 2048 kbytes
>coredumpsize 20480 kbytes
>memoryuse unlimited
>descriptors 4096
>
>The kernel seems to be built with decent default rlimit sizes:
>
>dfldsiz 134217728
>maxdsiz 1073741824
>dflssiz 2097152
>maxssiz 33554432
These aren't used for much other than killing your process when
a limit is exceeded.
>Furthermore, ps shows that the virtual memory size being used by Crack is
>just slightly more than half of the limit:
>
>> ps -o VFMT -p 975
> PID TT STAT TIME SL PAGEIN VSZ RSS %CPU %MEM COMMAND
> 975 ?? U N 759:13.00 0 0 71.2M 32.6 0.0 52.5 /share/s...
The VSZ is very large. How big is your main memory? Probably not more
than 71.2M. The system has already given your proc 32MB. How much
more is there to give it? It sounds like your system is overcommitted.
What other procs are running?
>Now the PAGEIN would seem to indicate that it's not actually crack
>that is causing the paging. However, it seems clear to me that it is.
>Furthermore, using "ps -O RUSAGE -e" gives a list of all processes
>except kernel processes, and every single process has 0 in the PAGEIN
>column, which doesn't make much sense to me at all.
Yes, many of the vm stats reported by ps are bogus. I've qar'd this.
I don't know if it will be fixed or not. Perhaps you want to qar it
via dec support.
>If anyone could suggest why the machine is paging with so much free
>memory, and why ps doesn't seem to think any of the processes are
>having PAGEINs, I'd be extremely grateful. Does this look like an OS
>bug, or this something I'm missing here?
You don't have a lot of free pages. vmstat shows that you have
around 80 free pages, which is about 640 kb, the amount of memory
in a dos box. The stats show your system is overcommited (i.e
the demand for pages exceeds the supply) so paging is natural.
I don't remember if crack is i/o intensive or not, but you may
want to restrict the amount of memory the filesystem can use.
From /usr/sys/conf/param.c:
#if !defined(UBCMINPERCENT)
int ubc_minpercent = 10;
#else
int ubc_minpercent = UBCMINPERCENT;
#endif
#if !defined(UBCMAXPERCENT)
int ubc_maxpercent = 100;
#else
int ubc_maxpercent = UBCMAXPERCENT;
#endif
This means that the file system will retain 10% of main memory and can
grow to consume 100% of main memory. You might want to tune the max
down a bit if you think that the vm and the file system are competing
for pages.
But, the one thing that would surely help is to add more memory or to
more disks to swap to. Having more disks would allow multiple swap
operations to occur in parallel. Since you have so much idle time,
it is almost a sure bet that increasing the performance of the i/o
system will result in increased throughput.
>Thanks
>--
>Dan Mosedale, Systems Admin Email: mosedale@genome.Stanford.EDU
>Stanford Genetics Department
----
Dave Cherkus UniMaster, Inc. cherkus@unimaster.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Alpha OSF/1 1.3A big proc, over-paging
1994-01-11 16:29 ` Dave Cherkus
@ 1994-01-18 23:16 ` Dan Mosedale
0 siblings, 0 replies; 4+ messages in thread
From: Dan Mosedale @ 1994-01-18 23:16 UTC (permalink / raw)
cherkus@UniMaster.COM writes:
>>
>>Virtual Memory Statistics: (pagesize = 8192)
>> procs memory pages intr cpu
>>r w u act free wire fault cow zero react pin pout in sy cs us sy id
>>2 42 25 2604 88 1062 12M 73K 125K 10M 11M 1M 489 35 233 16 5 80
>>2 42 25 2602 82 1066 200 5 61 57 87 33 608 25 247 0 7 93
>>2 42 25 2590 88 1066 124 0 47 29 66 40 543 32 220 0 8 91
>>2 42 25 2593 84 1066 183 0 94 19 77 34 613 13 240 0 6 93
>>2 42 25 2596 85 1066 139 0 47 18 78 35 565 17 228 0 6 93
>>2 42 25 2597 85 1066 172 0 94 28 65 34 556 36 236 1 8 91
>>2 42 25 2605 69 1066 141 0 47 19 78 31 582 11 252 0 6 94
>
>>The thing is, syd shows the machine as having 30 megs of free space:
>>
>>OSF1 V1.3 -- DEC OSF/1 System Information Display Vers. 3.1 -- 14:20:11
>>CPU Mode Total Current Processes devintr 1884 freeswp 39128
>>User 0% 0% Runnable 3 cntxtsw 758 freemem 30232
>>Nice 15% 0% Sleeping 11 syscall 186 pagein 100
>>Kernel 4% 6% Inactive 28 forks 0 pageout 54
>>Idle 79% 92% UnintWait 5 vforks 0 swapio -2
>>Load 0.00 0.02 0.02 Stopped 0 ttinch 0 dkxfers 180
>>Uptime 3 days, 4:11 Other 0 ttoutch 1324 dkblcks 1925
>
>I don't know how syd computes this. I believe vmstat more accurately
>reflects the problem you are having (i.e about 80 free main memory
>pages out of 2500).
Your posting and a few other notes have convinced me that syd is in
fact lying about how much free physical memory there is.
>>> ps -o VFMT -p 975
>> PID TT STAT TIME SL PAGEIN VSZ RSS %CPU %MEM COMMAND
>> 975 ?? U N 759:13.00 0 0 71.2M 32.6 0.0 52.5 /share/s...
>
>The VSZ is very large. How big is your main memory? Probably not more
>than 71.2M. The system has already given your proc 32MB. How much
>more is there to give it? It sounds like your system is overcommitted.
There is only 64 megs of physical memory, which suggests that you've
hit the nail on the head.
>>Now the PAGEIN would seem to indicate that it's not actually crack
>>that is causing the paging. However, it seems clear to me that it is.
>>Furthermore, using "ps -O RUSAGE -e" gives a list of all processes
>>except kernel processes, and every single process has 0 in the PAGEIN
>>column, which doesn't make much sense to me at all.
>
>Yes, many of the vm stats reported by ps are bogus. I've qar'd this.
>I don't know if it will be fixed or not. Perhaps you want to qar it
>via dec support.
I just did this.
>I don't remember if crack is i/o intensive or not, but you may
At certain times it is; it reads and sorts large dictionaries of
words.
>want to restrict the amount of memory the filesystem can use.
>From /usr/sys/conf/param.c:
>
>#if !defined(UBCMINPERCENT)
>int ubc_minpercent = 10;
>#else
>int ubc_minpercent = UBCMINPERCENT;
>#endif
>
>#if !defined(UBCMAXPERCENT)
>int ubc_maxpercent = 100;
>#else
>int ubc_maxpercent = UBCMAXPERCENT;
>#endif
>
>This means that the file system will retain 10% of main memory and can
>grow to consume 100% of main memory. You might want to tune the max
>down a bit if you think that the vm and the file system are competing
>for pages.
I may give this a shot. In the meantime I've just stopped running
Crack on this machine.
>But, the one thing that would surely help is to add more memory or to
>more disks to swap to. Having more disks would allow multiple swap
>operations to occur in parallel. Since you have so much idle time,
>it is almost a sure bet that increasing the performance of the i/o
>system will result in increased throughput.
Thanks for your help.
Dan
--
Dan Mosedale, Systems Admin Email: mosedale@genome.Stanford.EDU
Stanford Genetics Department
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1994-01-18 23:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-01-10 22:26 Alpha OSF/1 1.3A big proc, over-paging Dan Mosedale
1994-01-11 15:32 ` Steve Thompson
1994-01-11 16:29 ` Dave Cherkus
1994-01-18 23:16 ` Dan Mosedale
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox