public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dimitrios Apostolou <jimis@gmx.net>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: high system cpu load during intense disk i/o
Date: Mon, 06 Aug 2007 16:20:30 +0200	[thread overview]
Message-ID: <46B72E2E.5040906@gmx.net> (raw)
In-Reply-To: <20070805182811.a8992126.akpm@linux-foundation.org>

[-- Attachment #1: Type: text/plain, Size: 1469 bytes --]

Hello Andrew, thanks for your reply!


Andrew Morton wrote:
> On Sun, 5 Aug 2007 19:03:12 +0300 Dimitrios Apostolou <jimis@gmx.net> wrote:
> 
>> was my report so complicated?
> 
> We're bad.
> 
> Seems that your context switch rate when running two instances of
> badblocks against two different disks went batshit insane.  It doesn't
> happen here.
> 
> Please capture the `vmstat 1' output while running the problematic
> workload.
> 
> The oom-killing could have been unrelated to the CPU load problem.  iirc
> badblocks uses a lot of memory, so it might have been genuine.  Keep an eye
> on the /proc/meminfo output and send the kernel dmesg output from the
> oom-killing event.

Please see the attached files. Unfortunately I don't see any useful info 
in them:
	*_before: before running any badblocks process
	*_while: while running badblocks process, but without any cron job 
having kicked in
	*_bad: 5 minutes later that some cron jobs kicked in

About the OOM killer, indeed I believe that it is unrelated. It started 
killing after about 2 days, that hundreds of processes were stuck as 
running and taking up memory, so I suppose the 256 MB RAM were truly 
filled. I just mentioned it because its behaviour is completely 
non-helpful. It doesn't touch the badblocks process, it rarely touches 
the stuck as running cron jobs, but it kills other irrelevant processes. 
If you still want the killing logs, tell me and I'll search for them.


Thanks,
Dimitris

[-- Attachment #2: meminfo_bad.txt --]
[-- Type: text/plain, Size: 728 bytes --]

MemTotal:       255912 kB
MemFree:         22928 kB
Buffers:        123420 kB
Cached:          69168 kB
SwapCached:          0 kB
Active:         118440 kB
Inactive:        86228 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       255912 kB
LowFree:         22928 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:              76 kB
Writeback:           0 kB
AnonPages:       12088 kB
Mapped:           7608 kB
Slab:            23792 kB
SReclaimable:    18832 kB
SUnreclaim:       4960 kB
PageTables:        508 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:    127956 kB
Committed_AS:    24928 kB
VmallocTotal:   770040 kB
VmallocUsed:      2852 kB
VmallocChunk:   766864 kB

[-- Attachment #3: meminfo_before.txt --]
[-- Type: text/plain, Size: 728 bytes --]

MemTotal:       255912 kB
MemFree:         26348 kB
Buffers:        123156 kB
Cached:          68412 kB
SwapCached:          0 kB
Active:         115788 kB
Inactive:        85484 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       255912 kB
LowFree:         26348 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:             436 kB
Writeback:           0 kB
AnonPages:        9704 kB
Mapped:           5748 kB
Slab:            23680 kB
SReclaimable:    18712 kB
SUnreclaim:       4968 kB
PageTables:        468 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:    127956 kB
Committed_AS:    21260 kB
VmallocTotal:   770040 kB
VmallocUsed:      2852 kB
VmallocChunk:   766864 kB

[-- Attachment #4: meminfo_while.txt --]
[-- Type: text/plain, Size: 728 bytes --]

MemTotal:       255912 kB
MemFree:         25428 kB
Buffers:        123280 kB
Cached:          69088 kB
SwapCached:          0 kB
Active:         116216 kB
Inactive:        86068 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       255912 kB
LowFree:         25428 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:              40 kB
Writeback:           0 kB
AnonPages:        9952 kB
Mapped:           5796 kB
Slab:            23708 kB
SReclaimable:    18764 kB
SUnreclaim:       4944 kB
PageTables:        480 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:    127956 kB
Committed_AS:    22060 kB
VmallocTotal:   770040 kB
VmallocUsed:      2852 kB
VmallocChunk:   766864 kB

[-- Attachment #5: vmstat_bad.txt --]
[-- Type: text/plain, Size: 936 bytes --]

procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 4  1      0  22688 123432  69172    0    0     7    78   45   21  3  0 96  1
 4  2      0  22680 123432  69180    0    0     0 15872  249  461 34 66  0  0
 4  2      0  22680 123432  69180    0    0     0 15872  247  468 37 63  0  0
 4  2      0  22680 123432  69180    0    0     0 15872  251  472 38 62  0  0
 4  2      0  22680 123432  69180    0    0     0 16000  252  495 43 57  0  0
 4  2      0  22680 123432  69180    0    0     0 15872  252  471 32 68  0  0
 3  2      0  22680 123440  69180    0    0     0 15984  251  516 73 27  0  0
 3  1      0  22680 123440  69180    0    0     0 15872  250  482 33 67  0  0
 4  2      0  22620 123440  69180    0    0     0 15872  251  467 30 70  0  0
 4  2      0  22620 123440  69180    0    0     0 15872  250  460 45 55  0  0

[-- Attachment #6: vmstat_before.txt --]
[-- Type: text/plain, Size: 944 bytes --]

procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 0  0      0  26332 123196  68480    0    0     7    17   44   19  3  0 96  0
 0  0      0  26324 123196  68484    0    0     0     0   45   16  0  0 100  0
 0  0      0  26324 123196  68484    0    0     0     0   32   17  0  0 100  0
 0  0      0  26324 123196  68484    0    0     0     0   13   14  0  0 100  0
 0  0      0  26324 123196  68484    0    0     0     0   29   13  0  1 99  0
 0  0      0  26324 123196  68484    0    0     0     0   25   16  0  0 100  0
 0  0      0  26324 123204  68484    0    0     0    56   42   26  0  0 100  0
 0  0      0  26324 123204  68484    0    0     0     0   29   16  0  0 100  0
 0  0      0  26324 123204  68484    0    0     0     0   27   13  0  0 100  0
 0  0      0  26324 123204  68484    0    0     0     0   13   14  0  0 100  0

[-- Attachment #7: vmstat_while.txt --]
[-- Type: text/plain, Size: 936 bytes --]

procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 2  2      0  25428 123288  69092    0    0     7    27   44   19  3  0 96  0
 2  2      0  25420 123288  69096    0    0     0 15744  273  421  0  7  0 93
 2  2      0  25420 123288  69096    0    0     0 15872  276  429  0  4  0 96
 2  2      0  25420 123288  69096    0    0     0 15872  273  394  0  2  0 98
 2  2      0  25420 123288  69096    0    0     0 15872  277  430  0  2  0 98
 1  2      0  25420 123288  69096    0    0     0 16000  273  496  2 10  0 88
 2  2      0  25360 123292  69096    0    0     0 15996  288  508  0  4  0 96
 2  2      0  25360 123292  69096    0    0     0 16000  283  487  0  3  0 97
 2  2      0  25360 123292  69096    0    0     0 15872  279  452  0  2  0 98
 2  2      0  25360 123292  69096    0    0     0 15872  283  442  0  2  0 98

  reply	other threads:[~2007-08-06 13:30 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-03 16:03 high system cpu load during intense disk i/o Dimitrios Apostolou
2007-08-05 16:03 ` Dimitrios Apostolou
2007-08-05 17:58   ` Rafał Bilski
2007-08-05 18:42     ` Dimitrios Apostolou
2007-08-05 20:08       ` Rafał Bilski
2007-08-06 16:14       ` Rafał Bilski
2007-08-06 19:18         ` Dimitrios Apostolou
2007-08-06 19:48           ` Alan Cox
2007-08-07  0:40             ` Dimitrios Apostolou
2007-08-07  0:37               ` Alan Cox
2007-08-07 13:15                 ` Dimitrios Apostolou
2007-08-06 22:12           ` Rafał Bilski
2007-08-07  0:49             ` Dimitrios Apostolou
2007-08-07  9:03               ` Rafał Bilski
2007-08-07  9:43                 ` Dimitrios Apostolou
2007-08-06  1:28   ` Andrew Morton
2007-08-06 14:20     ` Dimitrios Apostolou [this message]
2007-08-06 17:33       ` Andrew Morton
2007-08-06 19:27         ` Dimitrios Apostolou
2007-08-06 20:04         ` Dimitrios Apostolou
2007-08-06 16:09     ` Dimitrios Apostolou
2007-08-07 14:50 ` Dimitrios Apostolou
2007-08-08 19:08   ` Rafał Bilski
2007-08-09  8:17     ` Dimitrios Apostolou
2007-08-10  7:06       ` Rafał Bilski
2007-08-17 23:19         ` Dimitrios Apostolou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46B72E2E.5040906@gmx.net \
    --to=jimis@gmx.net \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox