![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Performance of log parsing shell script very slow | sowmitr | Shell Programming and Scripting | 7 | 04-08-2009 01:37 PM |
| egrep is very slow : How to improve performance | hidnana | Shell Programming and Scripting | 7 | 02-12-2008 07:13 AM |
| Announcing collectl - new performance linux performance monitor | MarkSeger | News, Links, Events and Announcements | 0 | 10-26-2007 06:14 PM |
| Help! Slow Performance | Neo | Post Here to Contact Site Administrators and Moderators | 6 | 08-25-2003 03:08 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Slow Copy(CP) performance
Hi all
We have got issues with copying a 2.6 GB file from one folder to another folder. Well, this is not the first issue we are having on the box currently, i will try to explain everything we have done from the past 2 days. We got a message 2 days back saying that our Production is 98% full (disk space). So we started compressing all the old files, moved half of them to a backup server, and compressed the remaining on our server. By doing this we effectively bought down the disk space occupancy to 79%. Now today morning when i tried to run my process, the copying of a 2.6 GB file from folder A to folder B took ages. The SA checked the CPU utilization and told me that it was HIGH. i went ahead and killed some orphaned processes, to bring the CPU Utilization to 20%. Now, when there is high activity the CPU utilization varies between 20-35%. Even after improving the CPU Utilization, the copy of file is still painfully slow. Any guesses on what might have gone wrong ??? ![]() Let me know if i need to elaborate more Thanks Sri |
|
||||
|
zxmaus
Thanks for the response. we are on HP-UX server. you are right, we had fragmentation problem on the unix box. My SA was saying we had the buffer Cache fragmentation as well, which kept adding to our problems. the Admin ran a over-night de-frag process and increased the kernel parameter bcvmap_size_factor. We re-booted the box and things look much better now ![]() we are planning to keep an eye on the system and see when it starts to choke, so that we can plan for a de-frag periodically. Thanks |
|
||||
|
Rule of thumb:
Seriously consider never letting a given filesystem get above 80-85% full. Filesystems under heavy I/O loads suffer from various kinds of latency issues when free space becomes tight, file allocation times increase as well. The other caveat: Assuming loads of available free inodes, huge directory files (the directory file itself, not what is in the directory) are the result of adding lots of files to a single directory. As the directory file itself grows, system performance against it - ls, find, stat, etc. - becomes very poor. This is because any operation that does a readdir, which is sequential, is really slow if it has to read thru 2 million entries to find one filename. When files are deleted from the bloated directory, it does not shrink. You have to park the remaining files somewhere, delete the directory, recreate the directory, then move the files back into it. And you have a new, smaller size directory file. Having broader directory trees solves this problem in the first place. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|