Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-10-2011, 09:52 PM   #1
Registered: Jan 2010
Posts: 90

Rep: Reputation: 15
Load average too high

Dear All,

I wrote a script to extract and get the the name of *.gz in a foler . Since running that script every 10 minutes, load average on my server increases more than 10.
I checked with 'top' and it showed many D process ...

[myserver]# top
15121 root 16 0 0 0 0 D 0.0 0.0 0:00.00 basename
8049 root 16 0 0 0 0 D 0.0 0.0 0:00.00 basename
28875 root 25 0 0 0 0 D 0.0 0.0 0:00.00 basename
29008 root 16 0 0 0 0 D 0.0 0.0 0:00.00 basename
19404 root 25 0 0 0 0 D 0.0 0.0 0:00.00 basename
Here is my script
cd /myfolder
for f in *.gz; do
file=$(basename "$f" .gz)
gunzip -c "${f}" > /home/tmp/$file
And my folder has a lot of *.gz file. (about 400 files)
Could you please help me to check my script?
Thanks a lot!

Last edited by chobong; 08-10-2011 at 10:16 PM.
Old 08-11-2011, 12:58 AM   #2
LQ Newbie
Registered: Aug 2011
Posts: 6

Rep: Reputation: Disabled
Hi Chobong,

I've looked at the script and it should be functioning as should be expected.

Can you provide some further information:

* Size of files in question
* Length of filenames
* number of files that are being processed

Old 08-11-2011, 01:38 AM   #3
Registered: Jan 2010
Posts: 90

Original Poster
Rep: Reputation: 15
Thanks for your reply, Nick

-Size of files: less than 1 MB for each file (4M for all files)
-Length of filenames: this is log files of amazon-ec2, files have the same format like this
- Number of files: about 370 files and it will be increased when script run..

Do you have any idea for this problem?

Last edited by chobong; 08-11-2011 at 02:21 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
load average high in Suse 10.3 and 11.3 deepaksoni SUSE / openSUSE 0 10-05-2010 11:55 PM
Load Average is high (Ubuntu 9.0) KinnowGrower Linux - Laptop and Netbook 7 05-18-2010 11:45 PM
High load average investigation wmasry Linux - Newbie 8 02-10-2010 12:29 PM
load average high sang_froid Linux - Server 3 12-14-2009 10:18 AM
Load average stay as high as around 1.00 lawrence_lee_lee Linux - Software 2 09-10-2008 01:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration