niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Unix internals
spending lots of time in spin locks
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Brad Guillory
*nix forums beginner


Joined: 03 Feb 2005
Posts: 3

PostPosted: Wed Jul 13, 2005 12:50 pm    Post subject: spending lots of time in spin locks Reply with quote

If I should go elsewhere I apologize in advance; please just point me
in the right direction. I also posted to comp.unix.sco.programmer, but
that group appears dead.

There exists a SCO box (please keep reading):
# uname -X

System = SCO_SV
Node = *HIDDEN*
Release = 3.2v5.0.6
KernelID = 2000-07-27
Machine = Xeon
BusType = ISA
Serial = *HIDDEN*
Users = 255-user
OEM# = 0
Origin# = 1
NumCPU = 1

It runs a single curses based application (that my company maintains)
for about 250 users. After upgrading the application this weekend the
average "load" during peak hours jumped from 1.2 to 15+ (yes more than
10 fold).

I went through the sar -A report and found the following differences
between Friday (before the upgrade) and Tuesday (after the upgrade):

(forgive me if this is too verbose)

00:00:00 scall/s sread/s swrit/s fork/s exec/s rchar/s wchar/s
(-c)
FRI 10:00:00 58500 5777 2442 1305.29 11.28 1243788 35388
TUE 10:00:00 275583 3405 540 13.51 12.07 1641830 33363

As you can see the scall/s is much higher, but the characters read per
call to read is is higher (better) same for the writes. I figure that
this may be caused by longer times between calls to read() and write().
I am trying to account for the spike in scall/s.

scall/s
total number of system calls per second

sread/s
number of read(S) calls per second

swrit/s
number of write(S) calls per second

fork/s number of fork(S) calls per second

exec/s number of exec(S) calls per second

rchar/s
number of characters read per second (by read)

wchar/s
number of characters written per second (by write)


00:00:00 vflt/s pflt/s pgfil/s rclm/s (-p)
FRI 10:00:00 4070.80 19542.89 0.00 0.00
TUE 10:00:00 114.18 387.32 0.03 0.00

This seems interesting but I have no idea what would cause it.

vflt/s address translation page faults (valid page not in
memory)
per second

pflt/s page faults per second caused by attempts to write to
a page
marked ``copy-on-write'' (COW), or by protection
errors
(illegal access to page)

pgfil/s
address translation faults per second satisfied by
paging in
from filesystem

rclm/s pages added to the free list per second


I relinked the kernel and enabled prfld (the system profiler) to obtain
the following stats:

spltty 30.00
splx 35.16
sys_call 5.73
user 14.18

Can anyone point me to the next step? How can I find what library
calls in turn call spltty?

TIA, Brad Guillory
Back to top
Guest






PostPosted: Fri Jul 15, 2005 5:07 am    Post subject: Re: spending lots of time in spin locks Reply with quote

How fast CPU do you have ?
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 6:19 am | All times are GMT
navigation Forum index » Programming » Unix internals
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Running php file everyday on scheduled time sachin PHP 1 Fri Jul 21, 2006 12:49 pm
No new posts How to show the last time Solaris 8 machine was patched Arizona Solaris 2 Thu Jul 20, 2006 1:42 pm
No new posts anvil status reports not on time? Carlos Carvalho Postfix 5 Thu Jul 20, 2006 12:04 am
No new posts Warning when new attributes are added to classes at run time Matthew Wilson python 7 Wed Jul 19, 2006 8:42 pm
No new posts time limit on exec() Sonnich PHP 1 Wed Jul 19, 2006 8:40 am

Credit Cards | Problem Mortgage | Car Finance | Credit Counseling | Credit Card Consolidation
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1835s ][ Queries: 16 (0.1058s) ][ GZIP on - Debug on ]