Bug 239445
| Summary: | High CPU load with file move | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Brian Wheeler <bdwheele> | ||||
| Component: | kernel | Assignee: | Larry Woodman <lwoodman> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Martin Jenner <mjenner> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 5.0 | CC: | esandeen, liyanbj | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2008-04-09 18:33:42 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Brian Wheeler
2007-05-08 14:42:26 UTC
It appears that it also happens on file copies as well. Running cp on a huge file (268G -- a VM disk file) ramps up the load average. The only processes on the machine that are not sleeping are cp, kjournald, pdflush, and top. This is with kernel-2.6.18-8.1.14.el5 Hello, I built a latest kernel package, could you please test it on your system? Could you please repeat your move/copy test? When load will be too high please run following commands in parallel: 1) vmstat -n 1 60 > vmstat.txt 2) iostat /dev/sd? 1 60 > iostat.txt 3) mpstat -P ALL 1 60 > mpstat.txt 4) sysctl vm > sysctl.txt 5) ps -ea > ps.txt 6) ...and also again some screenshot from top Then send me the result files (vmstat.txt,iostat.txt...). The kernel packages for i686 and x86_64 can be downloaded at http://people.redhat.com/ivecera/bz239445/ Thank you -- Ivan Created attachment 231051 [details]
Requested statistics
I've attached the statistics and I've got a few notes. This doesn't happen with an rm. I maxed out at 1.78 load average with top, an idle jvm, some random cgis, but otherwise idle. One cpu was always at 96% wait, though it would move from cpu to cpu. The idle load prior to starting the test was < 0.1 During the test (cp disk0.orig.img disk0.img, a 270G file) the load average rose to around 7. Later in the copy the average went down to ~5 when the kswapd threads kicked in when the cache was being thrashed. Only 156k went to swap, so I assume it was mostly just paging text segments out to nowhere...and then probably paging them back in as needed. Is the high CPU load you are seeing a problem or is it just an observation? The pdflush daemons write until the IO queues fill then block uninterruptable until the devices catch up. Linux includes processes blocking in an uninterruptable state(like pdflushsd) in the load average as seen via top, uptime and /proc/loadavg just as though they were actually runnable. If this is not a problem, just an observation then this is simply the way Linux works. If you are seeing other performance issues then we have to look closet at this issue. Larry Woodman |