* Performance problems
@ 1995-12-13 11:25 Han.Weegink
0 siblings, 0 replies; 4+ messages in thread
From: Han.Weegink @ 1995-12-13 11:25 UTC (permalink / raw)
To: tru64-unix-managers
Problem
=======
We noticed considerable performance problems which we think
are caused by the process scheduler of Digital UNIX 3.2c.
Two tests have been carried out (TEST1 and TEST2 described
in detail below) involving communication between 4 processes.
TEST2 involves about twice as much context switching as
does TEST1. However, the performance difference is nearly a
factor 50 ! (TEST1 100 msg/second, TEST2 2.5 msg/second)
The difference between the two tests is that TEST2 waits for
acknowledgements, whereas TEST1 does not. This results in the
following scheduling sequences:
TEST1: A, B, C, D, C, B, A
TEST2: A, B, C, B, A, C, D, C, B, C, D, B, A
The severe performance penalty is likely to be caused by the
scheduler: the difference in CPU time used is negligible (a
few msecs).
Another test (TEST 3) involved instancing the above TEST1
two times simultaneously:
this way the two scheduling sequences, A, B, C, D, C, B, A
and A', B', C', D', C', B', A' get interlaced.
The result was that the performance decreased to 50% while the
average load of the system increased only with about 8% (from 10%
to 18%).
In all these tests the four processes have communicated by means
of TCP/IP sockets on the same host. The throughput of such a
socket has been measured to be at least 2000 (request or response)
messages per second.
Questions
=========
Has anyone seen this before ?
What causes the problem exactly ?
How do I solve this problem ?
thanks a lot in advance for any suggestions
Han Weegink
-------------------------------------------------------------
Configuration
=============
system: Alphaserver 2100 4/233
memory: 384 Mb
free diskspace: multiple Gbytes
#active users: 5, using PC-X emulation
TEST1
=====
4 processes (A, B, C and D) interact with each other as follows:
A sends a request to B and waits for a response from B.
B receives a request from A or a response from C,
performs some processing and sends the request to C and the
response to A, respectively.
C receives a request from B or a response from D,
performs some processing and sends the request to D and the
response to B, respectively.
D receives a request from C and subsequently sends a
response to C.
The sequence is thus as follows:
A B C D
Req->
Req->
Req-> Req->
<-Rsp
<-Rsp
<-Rsp
<-Rsp
This sequence has been monitored by means of a trace
and is the actual scheduling sequence.
The test has been run within a loop of 1000 iterations
Results: 100 complete messages (request & response) per second.
TEST2
=====
4 processes (A, B, C and D) interact with each other as follows:
A sends a request to B and waits for an acknowledgement
from B. After the acknowledgement has been received it
waits for a response from B.
B receives a request from A, a response from C or an
acknowledgement from C. After performing some processing
it does the following:
if it was a request it just sends the
request to C
if it was a response it sends an
acknowledgement to C and sends the
response to A,
if it was an acknowledgement it forwards the
acknowledgement to A.
C receives a request from B, a response from D or an
acknowledgement from B. After performing some processing
it does the following:
if it was a request it sends an
acknowledgement to B and sends the
request to D.
if it was a response it just sends the
response to B.
if it was an acknowledgement it forwards the
acknowledgement to D.
D receives a request from C. It sends a response
to C and waits for an acknowledgement from C.
The sequence is thus the following:
A B C D
Req->
Req->
<-Ack
<-Ack
<-Ack
Req-> Req->
<-Rsp
<-Rsp
<-Rsp
Ack->
Ack->
Ack->
<-Rsp
This sequence has been monitored by means of a trace
and is the actual scheduling sequence.
The test has been run within a loop of 1000 iterations
Results: 2.5 (two point five) complete messages (request &
response) per second.
Han Weegink
email: Han.Weegink@cmg.nl
CMG Computer Management Group
P.O. Box 412
1180 AK Amstelveen
The Netherlands
Phone: +31-20-5033000
Fax: +31-20-5033016
^ permalink raw reply [flat|nested] 4+ messages in thread
* performance problems
@ 2000-07-26 13:39 Tom Zuurbier
0 siblings, 0 replies; 4+ messages in thread
From: Tom Zuurbier @ 2000-07-26 13:39 UTC (permalink / raw)
To: tru64-unix-managers
Hi All,
I experience a very slow performance on a Alpha 4100/Digital Unix 4.0D
hosting a Oracle DB.
Mem=1GB. CPU=1x 466, HSZ50-AX raid 1+0.
vmstat shows:
No pout
constantly pin
usertime 75
systemtime 25
idletime 0
free is constantly <= 256 (vm-page-free-target = 256).
Iostat shows a lot of disk I/O.
Is this system I/O bound ?
Thanks in advance.
Regards,
Tom Zuurbier
Origin-IT Thailand
^ permalink raw reply [flat|nested] 4+ messages in thread
* Performance problems
@ 2001-06-20 20:42 Natesa Sabapathy
0 siblings, 0 replies; 4+ messages in thread
From: Natesa Sabapathy @ 2001-06-20 20:42 UTC (permalink / raw)
To: tru64-unix-managers
<html><head></head><body>
<p>Hi Admins,</p>
<p>The OS Version is 4.0D with patch kit 2. I am getting the following after the sys-check output.<br>
I would like to know which parameter to set in the vm subsystem right to reduce<br>
the page-in activitiy.</p>
<p>Are there any good web documentation on this stuff ? I had been browsing a lot and could not find<br>
something useful.</p>
<p>TIA,<br>
Natesa.</p>
<p>OUTPUT OF SYS_CHECK <br>
</p>
<p><b> Operational: High free memory ( 1474200 KB ). </b><br>
This may be caused by the system being idle or system parameters
incorrectly set.
</p>
<p><b> Operational: There is excessive page-in activity on the system ( 4558 ). </b><br>
Investigate this condition.
<br><i>See
<a target="new_window" href="http://www.UNIX.digital.com/bin/webman40d?../faqs/publications/base_doc/DOCUMENTATION/V40D_HTML/usr/share/man+man1+vmstat.1.gz">vmstat(1)</a>
reference page for information.</i></p>
<p><b> Note: The top and syd system monitoring tools, which
are available in the public domain or on the DIGITAL UNIX Freeware CD-ROM,
may consume enough kernel memory to crash the system if they are being
run continuously. Do not run these tools continuously, unless you apply
patches to these tools that fix the problem. </b></p>
<hr>
<p>
Total memory = 2097152 KB ( 2048 MB ) ( 2058 MB )
<br>Kernel size, console and gh-chunks = 47800 KB ( 46 MB )
<br>gh-chunks = 0 ( 0 KB ) ( 0 MB )
<br>Total vm managed memory after boot = 2049352 KB ( 2001 MB )
<br>current ubc size = 278712 KB ( 272 MB ) ( 13 % )
<br>current wired memory = 161416 KB ( 157 MB ) ( 7 % )
<br>current vm memory = 1620288 KB ( 1582 MB ) ( 79 % )
</p>
<p><br>vm-page-free-target = 512 ( 4096 KB )
<br>vm-page-free-optimal = 266 ( 2128 KB )
<br>vm-page-free-min = 20 ( 160 KB )
<br>vm-page-free-reserved = 10 ( 80 KB )
</p>
<p><br>ubc-maxpercent = 100 % ( 2049352 KB ) ( 2001 MB )
<br>ubc-minpercent = 10 % ( 204935 KB ) ( 200 MB )
<br>ubc-borrowpercent = 20 % ( 409870 KB ) ( 400 MB )
<br>vm-ubcdirtypercent = 10 % ( 27871 KB ) ( 27 MB )
<br>vm-ubcseqstartpercent = 30 % ( 614805 KB ) ( 600 MB )
<br>vm-ubcseqpercent = 10 % <i>of current UBC size, when UBC size
is greater than vm-ubcseqstartpercent</i> ( 61480 KB ) ( 60 MB )
</p>
<p><b> The namei cache hit rate is 98 %. </b></p>
<p><b> The UBC cache hit rate is 28 %. </b></p>
<p><a name="vm_st12"><b>vmstat -P</b></a></p>
<pre>Total Physical Memory = 2048.00 M
= 262144 pages
Physical Memory Clusters:
start_pfn end_pfn type size_pages / size_bytes
0 256 pal 256 / 2.00M
256 262139 os 261883 / 2045.96M
262139 262144 pal 5 / 40.00k
Physical Memory Use:
start_pfn end_pfn type size_pages / size_bytes
256 280 unixtable 24 / 192.00k
280 284 scavenge 4 / 32.00k
284 814 text 530 / 4.14M
814 918 data 104 / 832.00k
918 1134 bss 216 / 1.69M
1134 1287 kdebug 153 / 1.20M
1287 1294 cfgmgmt 7 / 56.00k
1294 1295 locks 1 / 8.00k
1295 1825 unixtable 530 / 4.14M
1825 1838 pmap 13 / 104.00k
1838 5970 vmtables 4132 / 32.28M
5970 262139 managed 256169 / 2001.32M
============================
Total Physical Memory Use: 261883 / 2045.96M
Managed Pages Break Down:
free pages = 185042
active pages = 7650
inactive pages = 9498
wired pages = 21451
ubc pages = 34294
==================
Total = 257935
WIRED Pages Break Down:
vm wired pages = 2381
ubc wired pages = 5757
meta data pages = 2618
malloc pages = 7003
contig pages = 584
user ptepages = 3038
kernel ptepages = 58
free ptepages = 8
==================
Total = 21447
</pre>
<p><a name="vm_st1"><b>vmstat -s</b></a></p>
<pre>Virtual Memory Statistics: (pagesize = 8192)
7590 active pages
9498 inactive pages
185096 free pages
21459 wired pages
2053607840 virtual memory page faults
652246754 copy-on-write page faults
547530215 zero fill page faults
16352 reattaches from reclaim list
649476446 pages paged in
751 pages paged out
4497686305 task and thread context switches
297946918 device interrupts
24631656187 system calls
</pre>
<p><a name="vm_st11"><b>vmstat -f</b></a></p>
<pre> 34141060 forks
250 vforks
</pre>
<p><a name="vm_st2"><b>vmstat 2 5</b></a></p>
<pre>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
3170 31 51K 185K 21K 2053M 652M 547M 16K 649M 751 88 7K 1K 5 9 86
3172 31 52K 184K 21K 2815 408 1499 0 635 0 288 17K 2K 7 17 76
3166 30 51K 184K 21K 1140 231 319 0 349 0 177 3K 2K 3 6 90
4166 30 51K 185K 21K 1188 222 253 0 162 0 263 31K 3K 10 24 66
3166 30 51K 185K 21K 3225 774 697 0 725 0 238 26K 4K 12 24 64
</pre>
<p><b>vmstat -f </b></p>
<pre> 34141116 forks
250 vforks
</pre>
</body></html>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Performance problems
@ 2002-03-08 14:59 Jim Kurtenbach
0 siblings, 0 replies; 4+ messages in thread
From: Jim Kurtenbach @ 2002-03-08 14:59 UTC (permalink / raw)
To: tru64-unix-managers
Greetings,
I have a Alphaserver 8200 with 4-433mhz cpu's and 6 gig of ram. This
machine runs several different oracle databases. I have been modifying
/etc/sysconfigtab trying to improve performance using the white paper from
Compaq on large memory machines as an example.
I fear that my /etc/sysconfigtab is making things worse as a large
percentage of my time is spent in system mode and paging activity seems very
high.
Any comments/suggestions are most apreciated.
Thanks,
James Kurtenbach
Clinical Reference Laboratory
8433 Quivira
Lenexa, KS 66215
(913) 693 2508 (direct)
(913) 492 3652 (operator assisted)
kurtenbachj@crlcorp.com
Top shows:
load averages: 10.10, 10.64, 10.79
08:26:00
354 processes: 11 running, 11 waiting, 148 sleeping, 184 idle
CPU states: 46.7% user, 0.0% nice, 52.6% system, 0.6% idle
Memory: Real: 1325M/6029M act/tot Virtual: 17387M use/tot Free: 3495M
PID USERNAME PRI NICE SIZE RES STATE TIME CPU COMMAND
6570 oracle 48 0 1078M 51M run 41:04 28.30% oracle
27142 oracle 49 0 1078M 50M run 62:31 26.60% oracle
25284 applmgr 48 0 134M 17M run 4:02 24.30% oracle
29440 oracle 48 0 1078M 48M run 61:22 22.40% oracle
5216 oracle 47 0 1078M 48M run 45:51 22.00% oracle
12800 oracle 42 0 1078M 49M WAIT 51:57 21.70% oracle
25172 oracle 48 0 1078M 44M run 17:15 21.60% oracle
27377 oracle 47 0 1078M 49M run 63:19 20.90% oracle
25117 applmgr 47 0 134M 14M run 0:01 19.50% oracle
24949 applmgr 42 0 567M 164M sleep 2:15 17.20% oracle
20173 oracle 42 0 567M 146M WAIT 6:22 12.40% oracle
19022 oracle 42 0 567M 146M WAIT 6:40 11.40% oracle
13362 root 45 0 2824K 1679K run 0:00 9.80% ps
25163 oracle 44 0 17M 5529K sleep 4:06 6.90% dbsnmp
26534 oracle 42 0 1078M 46M WAIT 17:13 6.70% oracle
# vmstat -P
Total Physical Memory = 6144.00 M
= 786432 pages
Physical Memory Clusters:
start_pfn end_pfn type size_pages / size_bytes
0 256 pal 256 / 2.00M
256 786348 os 786092 / 6141.34M
786348 786432 pal 84 / 672.00k
Physical Memory Use:
start_pfn end_pfn type size_pages / size_bytes
256 276 unixtable 20 / 160.00k
276 284 scavenge 8 / 64.00k
284 768 text 484 / 3.78M
768 873 data 105 / 840.00k
873 1088 bss 215 / 1.68M
1088 1229 kdebug 141 / 1.10M
1229 1234 cfgmgmt 5 / 40.00k
1234 1235 locks 1 / 8.00k
1235 2378 unixtable 1143 / 8.93M
2378 2391 pmap 13 / 104.00k
2391 14957 vmtables 12566 / 98.17M
14957 786348 managed 771391 / 6026.49M
============================
Total Physical Memory Use: 786092 / 6141.34M
Managed Pages Break Down:
free pages = 445869
active pages = 55027
inactive pages = 105163
wired pages = 49837
ubc pages = 115771
==================
Total = 771667
WIRED Pages Break Down:
vm wired pages = 4095
ubc wired pages = 23766
meta data pages = 7860
malloc pages = 6614
contig pages = 134
user ptepages = 6888
kernel ptepages = 218
free ptepages = 5
==================
Total = 49580
Finally,
Here are the last 60 lines of sysconfigtab.
# Entries merged forward from /etc/sysconfigtab
generic:
msgbuf_size =16384
message-buffer-size =16384
proc:
per-proc-stack-size =8388608
per-proc-address-space =4398046511104
max-per-proc-address-space =4398046511104
max-proc-per-user =6000
maxusers=2048
ipc:
shm-max =2139095040
shm-mni =2048
shm-seg =512
sem-mni =2048
sem-msl =2048
sem-opm =400
sem-ume =400
ssm-threshold =0
vm:
vm-maxvas =10737418240
private-text =1
ubc-maxpercent=15
vm-ubcseqstartpercent =10
vm-page-free-target =2048
vm-mapentries =16384
vm-vpagemax =1310720
vfs:
bufcache =1
pts:
nptys =800
advfs:
AdvfsPreallocAccess =2528
AdvfsCacheMaxPercent=3
#
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-03-08 14:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-12-13 11:25 Performance problems Han.Weegink
-- strict thread matches above, loose matches on Subject: below --
2000-07-26 13:39 performance problems Tom Zuurbier
2001-06-20 20:42 Performance problems Natesa Sabapathy
2002-03-08 14:59 Jim Kurtenbach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox