- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: High CPU usage in file movements
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2003 05:11 PM
08-04-2003 05:11 PM
High CPU usage in file movements
I have a script that moves a file into a directory that contains 80,000 files. I noticed that this consumes huge amount of CPU resources (about 80%). Will a destination directory with alot of files cause a high CPU usage?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2003 06:32 PM
08-04-2003 06:32 PM
Re: High CPU usage in file movements
If the utilization are very high, will be necessary to divide the load between many disks, maybe using disk stripe.
Check for bottlenecks during movement:
# sar -u 5 5
# sar -d 5 5
# vmstat 5 5
# sar -v 5 5
# swapinfo -tam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2003 06:47 PM
08-04-2003 06:47 PM
Re: High CPU usage in file movements
Collect some data, but I'll tell you now, thats too many files for one diretory. That's not a technical answer, I don't know what the limit is. I do know an ls or find command will beat the system hard in that directory.
Subdirectories exist to organize files logically.
The table of file information(non technical term) must take a lifetime to load.
There is no need to stop this process. Let it finish and see what you can do to improve it.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 05:33 PM
08-05-2003 05:33 PM
Re: High CPU usage in file movements
I ran some of your attached scripts. Attached is the zip file of the results.
There are some high usage spikes, caused by the move command. The spikes are also caused by Oracle Log switches every 7 mins :-(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2003 10:45 PM
09-21-2003 10:45 PM
Re: High CPU usage in file movements
There are also several kernel params that help with FS performance: vxfs_max_ra_bytes, vx_ncsize are the two main boys here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2003 10:56 PM
09-21-2003 10:56 PM
Re: High CPU usage in file movements
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2003 11:11 PM
09-21-2003 11:11 PM
Re: High CPU usage in file movements
the problem may lie in the size of the directory file itself. What does an ls -ld of the directory show?
If you have 80000 files in the directory there are also 80000 references to these in the directory file itself. You probably have more, as a directory files does not shrink, even when files in the directory are deleted. Instead, deleted files are marked as free/available in the directory file, and when you add a new file to the directory, the system will look for a free/available file reference in the directory file to use, and this activity could consume a substantial amount of your cpu power.
regards,
John K.