Re: Looping Shell Scripts and System Load

2020-06-25 Thread David
On Thu, 25 Jun 2020 at 19:23, Tixy wrote: > On Wed, 2020-06-24 at 13:43 -0400, Greg Wooledge wrote: > [Lots of good shell scripting advice snipped] > Thanks Greg for posting these code reviews of people's scripts, it's > not just the script authors which might learn something, but also some > of

Re: Looping Shell Scripts and System Load

2020-06-25 Thread Tixy
On Wed, 2020-06-24 at 13:43 -0400, Greg Wooledge wrote: [Lots of good shell scripting advice snipped] Thanks Greg for posting these code reviews of people's scripts, it's not just the script authors which might learn something, but also some of us list subscribers. :-) -- Tixy

Re: Looping Shell Scripts and System Load

2020-06-24 Thread Martin McCormick
Greg Wooledge writes: > All-caps names are reserved for environment variables (HOME, PATH), > and internal shell variables (IFS, PWD, HISTFILE). > > Avoiding all-caps names allows you to avoid collisions with a variable > name that might be used for something else. Most of the time. This > bein

Re: Looping Shell Scripts and System Load

2020-06-24 Thread David Christensen
On 2020-06-24 10:19, Martin McCormick wrote: I wrote a shell script that unzips documents and I originally wrote it such that it gets document #1, unzips it then gets document #2, etc and it does that just fine so I wondered if I could make it run faster by starting several processes at once, eac

Re: Looping Shell Scripts and System Load

2020-06-24 Thread Kamil Jońca
Greg Wooledge writes: > On Wed, Jun 24, 2020 at 08:23:18PM +0200, Roger Price wrote: >> On Wed, 24 Jun 2020, Greg Wooledge wrote: >> >> > > MEDIADIR=`pwd` >> > >> > Don't use all caps variable names. >> >> Without getting into syntax-religious wars, what is the reasoning behind >> this recomme

Re: Looping Shell Scripts and System Load

2020-06-24 Thread Greg Wooledge
On Wed, Jun 24, 2020 at 08:23:18PM +0200, Roger Price wrote: > On Wed, 24 Jun 2020, Greg Wooledge wrote: > > > > MEDIADIR=`pwd` > > > > Don't use all caps variable names. > > Without getting into syntax-religious wars, what is the reasoning behind > this recommendation? Roger All-caps names ar

Re: Looping Shell Scripts and System Load

2020-06-24 Thread Roger Price
On Wed, 24 Jun 2020, Greg Wooledge wrote: MEDIADIR=`pwd` Don't use all caps variable names. Without getting into syntax-religious wars, what is the reasoning behind this recommendation? Roger

Re: Looping Shell Scripts and System Load

2020-06-24 Thread D. R. Evans
Martin McCormick wrote on 6/24/20 11:19 AM: > > Right now, uptime looks like: > > 11:48:07 up 26 days, 23:10, 7 users, load average: 16.15, 15.60, 10.65 > > That's pretty loaded so ideally, one could start the > looping script and it would fire up processes until things got > rea

Re: Looping Shell Scripts and System Load

2020-06-24 Thread Greg Wooledge
On Wed, Jun 24, 2020 at 01:24:23PM -0400, Roberto C. Sánchez wrote: > I recommend you look at the parallel package. It is specifically geared > toward parallelization of constructed shell command lines. Think > something along the lines of "find -exec " but with the ability > to parallel

Re: Looping Shell Scripts and System Load

2020-06-24 Thread Greg Wooledge
On Wed, Jun 24, 2020 at 12:19:30PM -0500, Martin McCormick wrote: > #!/bin/sh Why? Use bash. > unarchive () { > unzip $1 Quotes. > MEDIADIR=`pwd` Don't use all caps variable names. Don't use backticks. Use $() for command substitution. Don't use $(pw

Re: Looping Shell Scripts and System Load

2020-06-24 Thread Roberto C . Sánchez
On Wed, Jun 24, 2020 at 12:19:30PM -0500, Martin McCormick wrote: > I wrote a shell script that unzips documents and I originally > wrote it such that it gets document #1, unzips it then gets > document #2, etc and it does that just fine so I wondered if I > could make it run faster by starting sev

Looping Shell Scripts and System Load

2020-06-24 Thread Martin McCormick
I wrote a shell script that unzips documents and I originally wrote it such that it gets document #1, unzips it then gets document #2, etc and it does that just fine so I wondered if I could make it run faster by starting several processes at once, each one unzipping a file. It's certainly still r

Re: system load spike

2007-10-22 Thread Kent Tong
Hi all, Thanks for the replies. I've identified that it's pdflush that is causing the problem. I have 3 of them running in D state along with usb-storage. This is enough to cause a system load of 4. Adding gzip will make it 5. I've found some references stating the problems of

Re: system load spike

2007-10-22 Thread Andrew Sackville-West
ch > >> compression step, which gives the system I/O a chance to catch up. > >> Obviously you could also vary the "1" as needed. > >> > > > > Thanks for the reply. We have a performance monitoring system and that > > high system load is tr

Re: system load spike

2007-10-21 Thread Ron Johnson
ives the system I/O a chance to catch up. >> Obviously you could also vary the "1" as needed. >> > > Thanks for the reply. We have a performance monitoring system and that > high system load is triggering quite some alerts. The backup is basically > done in a single comm

Re: system load spike

2007-10-21 Thread Kent Tong
d. > Thanks for the reply. We have a performance monitoring system and that high system load is triggering quite some alerts. The backup is basically done in a single command pipeline: find -L $SRCROOT -xdev -size -50G | \ cpio -o -H tar | \ gzip -c -1 > $DSTPATH Therefore

Re: system load spike

2007-10-21 Thread Carl Fink
On Sun, Oct 21, 2007 at 08:40:46PM -0700, Kent Tong wrote: > > Hi, > > I am using a shell script to perform backup. Whenever it is launched, the > system load average > reaches 3-5 regularly. I am already launching it script using "nice -n 19". > The script is us

system load spike

2007-10-21 Thread Kent Tong
Hi, I am using a shell script to perform backup. Whenever it is launched, the system load average reaches 3-5 regularly. I am already launching it script using "nice -n 19". The script is using find, cpio and gzip. They should automatically inherit the nice value of 19. I am already u

Re: command to display system load?

2006-03-28 Thread Vincent Lefevre
On 2006-03-28 22:55:36 +0800, Deephay wrote: > I am wondering that which command can display some information about the > system load > like this: > 07:17:25 up 9:07, 6 users, load average: 0.42, 0.41, 0.30 > (I got this when I tried to overwrite a file with vim) uptime --

Re: command to display system load?

2006-03-28 Thread Mike McCarty
Deephay wrote: Greetings all, I am wondering that which command can display some information about the system load like this: 07:17:25 up 9:07, 6 users, load average: 0.42, 0.41, 0.30 (I got this when I tried to overwrite a file with vim) thx! Deephay For a "graphical" d

[solved]Re: command to display system load?

2006-03-28 Thread Deephay
thx all!On 3/28/06, Mankuthimma <[EMAIL PROTECTED]> wrote: Hi,

Re: command to display system load?

2006-03-28 Thread Star King of the Grape Trees
Deephay wrote: Greetings all, I am wondering that which command can display some information about the system load like this: 07:17:25 up 9:07, 6 users, load average: 0.42, 0.41, 0.30 (I got this when I tried to overwrite a file with vim) thx! Deephay You can run any program from

Re: command to display system load?

2006-03-28 Thread Mankuthimma
Hi,  07:17:25 up  9:07,  6 users,  load average: 0.42, 0.41, 0.30(I got this when I tried to overwrite a file with vim) # uptime  10:02:52 up  1:36,  2 users,  load average: 0.15, 0.22, 0.11M

Re: command to display system load?

2006-03-28 Thread Carl Fink
On Tue, Mar 28, 2006 at 10:55:36PM +0800, Deephay wrote: > I am wondering that which command can display some information about the > system load > like this: > 07:17:25 up 9:07, 6 users, load average: 0.42, 0.41, 0.30 > (I got this when I tried to overwrite a file with v

command to display system load?

2006-03-28 Thread Deephay
Greetings all,  I am wondering that which command can display some information about the system loadlike this: 07:17:25 up  9:07,  6 users,  load average: 0.42, 0.41, 0.30(I got this when I tried to overwrite a file with vim) thx!Deephay

RE: incredible system load

2005-06-17 Thread Steven Law
> -Original Message- > From: Joey Hess [mailto:[EMAIL PROTECTED] > Sent: Friday, June 17, 2005 11:48 AM > To: Steven Law > Cc: debian-user@lists.debian.org > Subject: Re: incredible system load > > Steven Law wrote: > > i have a FTP server which

Re: incredible system load

2005-06-16 Thread Joey Hess
Steven Law wrote: > i have a FTP server which runs vsftpd. > normally the system load average is 0.5. > but i found it be incredible high today. > here comes the 'top' information: > > === &

incredible system load

2005-06-16 Thread Steven Law
hi,all:     i have a FTP server which runs vsftpd. normally the system load average is 0.5. but i found it be incredible high today. here comes the 'top' information:   ===   top - 10:06:34 up 1 day, 19:15

Re: Just curious about system LOAD

2003-11-17 Thread Vineet Kumar
* Graeme Tank ([EMAIL PROTECTED]) [031117 17:15]: > On Mon, Nov 17, 2003 at 11:38:54PM +0100, Paul Sommer wrote: > > Hi there, > > > > this is nor really a problem, but I'm curious about what the system load > > exactly is. > > > > Please share your

Re: Just curious about system LOAD

2003-11-17 Thread Graeme Tank
On Mon, Nov 17, 2003 at 11:38:54PM +0100, Paul Sommer wrote: > Hi there, > > this is nor really a problem, but I'm curious about what the system load > exactly is. > > Please share your wisdom with me :-) > > Paul I was wondering about the load average the oth

Re: Just curious about system LOAD

2003-11-17 Thread Vineet Kumar
* Paul Sommer ([EMAIL PROTECTED]) [031117 14:56]: > Hi there, > > this is nor really a problem, but I'm curious about what the system load > exactly is. > > The following scenario happens several times an hour: > > xosview and gkrellm meters say: CPU load is ab

Just curious about system LOAD

2003-11-17 Thread Paul Sommer
Hi there, this is nor really a problem, but I'm curious about what the system load exactly is. The following scenario happens several times an hour: xosview and gkrellm meters say: CPU load is about 25% to 50%, disk and swap activity is low, even Network traffic is low, but the load s

system load

1999-04-12 Thread Pere Camps
Hi! Can anybody explain me how the system load is measured? For example, for this statistic, is it the same to have 3 processes wanting 100% of the CPU with a 0 priority than having 3 with, let's say, 10, 15 and 20 priority? If there's a FAQ or README please p

Re: System Load

1999-02-21 Thread Joey Hess
George Bonser wrote: > On Sun, 21 Feb 1999, Chris Hoover wrote: > > > I'm running 2.2.1. This is the first time I've noticed it, and am not > > doing anything out of the ordinary. > > > > See if there is some stale Netscape process running or if RealAudio is > hung in a weird state. Check "ps

System Load

1999-02-21 Thread Chris Hoover
I'm a little concerned about my system load. Top is registering a load average of 1.35 1.24 1.01, but my system is more than 90%. How can this be? There is no disk activity, and lots of free memory. I'm running 2.2.1. This is the first time I've noticed it, and am not doing

Re: [QUESTIONS] starvation of writer under system load? (was deadlock)

1997-10-29 Thread Mario Jorge Nunes Filipe
Chris Albertson wrote: > There is one more thing you need to do, or so say the textbooks. That > is deadlock detection or if you can do it, deadlock prevention. This > is a function of a lock queue manager. > > Also you need one lock queue for each lockable object. If locking > were done at th