![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| High memory usage in AIX 5.1 | jayakumarrt | AIX | 5 | 02-14-2008 07:17 PM |
| memory usage : kernel, oracle, other users | thierryUX | UNIX for Dummies Questions & Answers | 4 | 09-18-2006 12:17 PM |
| Need to send email on HIGH Disk usage | csaha | Shell Programming and Scripting | 1 | 05-07-2006 06:43 AM |
| Sun: High kernel usage & very high load averages | lorrainenineill | UNIX for Advanced & Expert Users | 4 | 02-06-2006 12:32 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
High kernel usage using sleep
Hi
I have a lot of scripts running on a Sun Solaris server, which are constantly running in a loop looking for work to do. When they have no work they sleep for a certain amount of time (60secs normally). I have 13 of these scripts running the number of sleep command issued can be in the order of 40,000 per hour. This level of sleeping is causing higher than normal kernel usage. Is there an alternative to sleep which will not cause so much kernel usage? Or can anyone suggest anything else. Thanks, |
|
||||
|
I have noticed that when the shell scripts are down then the kernel usuage returns back to normal.
Can you suggest anything in a script that would then? The scripts are doing usual things like sqlplus calls, writing/reading from files, ls, ps commands - nothing out of the ordinary. These scripts are running 24/7. |
|
||||
|
Quote:
Code:
sqlplus us/pw <<EOF ... EOF Code:
sqlplus -s /nolog |& print -p "connect un/pw" |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|