public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Zick" <lkml@morethan.org>
To: Wu Fengguang <fengguang.wu@intel.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
	Christoph Lameter <cl@linux-foundation.org>,
	Ray Lee <ray-lk@madrabbit.org>, Rik van Riel <riel@redhat.com>,
	Satish Eerpini <eerpini@gmail.com>
Subject: Re: unresponsiveness on linux desktop during file copy
Date: Sun, 17 May 2009 08:14:50 -0500	[thread overview]
Message-ID: <200905170814.52776.lkml@morethan.org> (raw)
In-Reply-To: <20090517045800.GA32723@localhost>

On Sat May 16 2009, you wrote:
> On Sun, May 17, 2009 at 12:30:28PM +0800, Satish Eerpini wrote:
> > > I've prepared a rolled up patch for you, run time tested.  It should
> > > protect all of the above pages from being evicted by large file copies.
> > >
> > > The attached patch is for 2.6.29.
> >
> > I applied the patch , but the number don seem to show much difference
> 
> The numbers listed in your email? No the most relevant numbers are
> memory and disk ones.
> 
> For my part, the number of mapped pages keeps stable when there is an
> ongoing background file copy:
> 
> % ls -l /b/sparse
> -rw-r--r-- 1 root root 98T 2009-04-29 22:38 /b/sparse
> % cp /b/sparse /dev/null&
> % for i in `seq 1 100`; do grep Mapped /proc/meminfo; sleep 1; done
> Mapped:            22764 kB
> Mapped:            22796 kB
> Mapped:            22756 kB
> Mapped:            22716 kB
> Mapped:            22800 kB
> Mapped:            22788 kB
> Mapped:            22804 kB
> Mapped:            22808 kB
> Mapped:            22748 kB
> Mapped:            22708 kB
> Mapped:            22916 kB
> Mapped:            22944 kB
> Mapped:            22944 kB
> Mapped:            22944 kB
> Mapped:            22944 kB
> Mapped:            22944 kB
> Mapped:            22832 kB
> Mapped:            22812 kB
> Mapped:            22812 kB
> Mapped:            22792 kB
> Mapped:            22772 kB
> Mapped:            22860 kB
> Mapped:            22860 kB
> Mapped:            22748 kB
> Mapped:            22808 kB
> Mapped:            22868 kB
> Mapped:            22956 kB
> Mapped:            22956 kB
> Mapped:            22832 kB
> Mapped:            22832 kB
> Mapped:            22980 kB
> Mapped:            22980 kB
> Mapped:            22980 kB
> Mapped:            22980 kB
> Mapped:            22872 kB
> Mapped:            22872 kB
> Mapped:            22900 kB
> Mapped:            22792 kB
> Mapped:            22920 kB
> Mapped:            22812 kB
> Mapped:            22812 kB
> Mapped:            22752 kB
> Mapped:            22864 kB
> Mapped:            22972 kB
> Mapped:            22860 kB
> Mapped:            22796 kB
> Mapped:            22900 kB
> Mapped:            22888 kB
> Mapped:            22888 kB
> Mapped:            22888 kB
> Mapped:            22764 kB
> 
> > , following are the statistics with the patched kernel, could
> > something else be causing the huge iowait,  :
> >
> > Linux 2.6.29 (satish) 	05/17/2009
> >
> > 09:57:14 AM     CPU     %user     %nice   %system   %iowait    %steal     %idle
> > 09:57:18 AM     all     12.93      0.00     10.25     33.44      0.00     43.38
> > 09:57:21 AM     all     13.32      0.00     28.09     24.40      0.00     34.19
> > 09:57:24 AM     all     10.79      0.00      4.76     75.56      0.00      8.89
> > 09:57:26 AM     all     11.46      0.00      8.01     35.64      0.00     44.90
> > 09:57:30 AM     all     11.68      0.00      8.88     35.05      0.00     44.39
> > Average:        all     12.03      0.00     11.94     40.81      0.00     35.22
> 
> The iowait is high. Do you have "iostat -x 5' numbers?
> 
> > and
> >
> > hdparm -tT /dev/sda
> >
> > /dev/sda:
> >  Timing cached reads:   1332 MB in  2.00 seconds = 666.35 MB/sec
> >  Timing buffered disk reads:   24 MB in  3.32 seconds =   7.23 MB/sec
> 
> That's pretty slow numbers. On my laptop:
> 
> # hdparm -tT /dev/sda
> 
> /dev/sda:
>  Timing cached reads:   10266 MB in  1.98 seconds = 5188.46 MB/sec
>  Timing buffered disk reads:  138 MB in  3.01 seconds =  45.90 MB/sec
> 

I see (on 2.6.30-rc6, no patches):

# hdparm -tT /dev/sda (The internal, low-power, low performance hdd):

/dev/sda:
 Timing cached reads:   492 MB in  2.00 seconds = 245.83 MB/sec
 Timing buffered disk reads:   74 MB in  3.05 seconds =  24.26 MB/sec

# hdparm -tT /dev/sdb (A Class-6, SDHC card):

/dev/sdb:
 Timing cached reads:   472 MB in  2.01 seconds = 235.28 MB/sec
 Timing buffered disk reads:   40 MB in  3.13 seconds =  12.79 MB/sec

And the only thing going on -
(once you deduct the effect of getting this output) - nothing:

top - 08:09:25 up 9 min,  1 user,  load average: 0.24, 0.40, 0.25
Tasks:  86 total,   1 running,  85 sleeping,   0 stopped,   0 zombie
Cpu(s):  2.9%us,  4.2%sy,  0.8%ni, 59.9%id, 32.2%wa,  0.0%hi,  0.1%si,  0.0%st
Mem:    447040k total,   242996k used,   204044k free,    73516k buffers
Swap:  2199324k total,        0k used,  2199324k free,    79868k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 3359 root      20   0  2444 1048  824 R  3.8  0.2   0:00.04 top
 3360 root      20   0  3376  888  744 S  1.9  0.2   0:00.01 less
    1 root      20   0  3084 1884  564 S  0.0  0.4   0:01.59 init
    2 root      15  -5     0    0    0 S  0.0  0.0   0:00.00 kthreadd

Mike
> Thanks,
> Fengguang
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 
> 



  parent reply	other threads:[~2009-05-17 13:15 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-15 17:07 unresponsiveness on linux desktop during file copy Satish Eerpini
2009-05-15 17:12 ` Mark Knecht
     [not found]   ` <93655eb70905151024o634f8432j6c3db85df1f6ddfc@mail.gmail.com>
     [not found]     ` <5bdc1c8b0905151120p5aa58318t1765544fbbb695b2@mail.gmail.com>
2009-05-16  2:38       ` Satish Eerpini
2009-05-16  2:47         ` Mark Knecht
2009-05-16  3:12           ` Satish Eerpini
2009-05-16  3:37             ` Mark Knecht
2009-05-16  6:52               ` Satish Eerpini
2009-05-16 21:11                 ` Mark Knecht
2009-05-17  8:54                 ` Robert Hancock
2009-05-17  9:04                   ` Satish Eerpini
2009-05-17  8:52           ` Robert Hancock
2009-05-15 18:02 ` Ray Lee
2009-05-15 19:33   ` Christoph Lameter
2009-05-16 16:03     ` Ray Lee
2009-05-16 17:38       ` Rik van Riel
2009-05-17  1:19         ` Wu Fengguang
2009-05-17  1:27           ` Satish Eerpini
2009-05-17  2:08             ` Wu Fengguang
2009-05-17  4:30               ` Satish Eerpini
2009-05-17  4:57                 ` Arjan van de Ven
2009-05-17  4:58                 ` Wu Fengguang
2009-05-17  6:18                   ` Satish Eerpini
2009-05-17  9:30                     ` Wu Fengguang
2009-05-17 12:01                       ` Satish Eerpini
2009-05-17 12:17                         ` Wu Fengguang
2009-05-17 12:27                           ` Satish Eerpini
2009-05-17 12:39                             ` Wu Fengguang
2009-05-17 13:03                               ` Satish Eerpini
2009-05-17 13:11                                 ` Wu Fengguang
2009-05-17 13:43                                   ` Satish Eerpini
2009-05-17 13:14                   ` Michael S. Zick [this message]
2009-05-16  2:28   ` Satish Eerpini
2009-05-16 14:25   ` Satish Eerpini

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=200905170814.52776.lkml@morethan.org \
    --to=lkml@morethan.org \
    --cc=cl@linux-foundation.org \
    --cc=eerpini@gmail.com \
    --cc=fengguang.wu@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ray-lk@madrabbit.org \
    --cc=riel@redhat.com \
    /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