public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Ihar 'Philips' Filipau" <filia@softhome.net>
To: Mike Fedyk <mfedyk@matchmail.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: cache limit
Date: Wed, 27 Aug 2003 12:21:13 +0200	[thread overview]
Message-ID: <3F4C8619.4020505@softhome.net> (raw)
In-Reply-To: <20030826192333.GA1258@matchmail.com>

Mike Fedyk wrote:
> 
> That was because they wanted the non-streaming files to be left in the cache.
> 
>>  I will try to produce some benchmarktings tomorrow with different 
>>'mem=%dMB'. I'm afraid to confirm that it will make difference.
>>  But in advance: mantainance of page tables for 1GB and for 128MB of 
>>RAM are going to make a difference.
> 
> I'm sorry to say, but you *will* get lower performance if you lower the mem=
> value below your working set.  This will also lower the total amount of
> memory available for your applications, and force your apps, to swap and
> balance cache, and app memory.
> 
> That's not what you are looking to benchmark.
> 

   Okay. I'm completely puzzled.
   I will qute here only one test - and I really do not understand this 
stuff.

   Three boots with the same parameters and only mem=nMB, n = 
{512,256,128} (I have 512MB RAM)

   hdparm tests:
[root@hera ifilipau]# hdparm -t /dev/hda
/dev/hda:
  Timing buffered disk reads:  64 MB in  1.56 seconds = 41.03 MB/sec
[root@hera ifilipau]# hdparm -T /dev/hda
/dev/hda:
  Timing buffer-cache reads:   128 MB in  0.44 seconds =290.91 MB/sec
[root@hera ifilipau]#

   Before tests I was doing 'swapoff -a; sync'
   RedHat's 2.4.20-20.9 kernel.

   What has really puzzled me.
   Operation: "cat *.bz2 >big_file", where *.bz2 is just two bzipped 
kernels. Total size: 29MB+32MB (2.4.22 + 2.6.0-test1)

   To be bsolutely fair in this unfair benchmark I have run test only 
once. Times in seconds as shown by bash's time.

            cat      sync
   512MB:  1.565    0.007
   256MB:  1.649    0.008
   128MB:  2.184    0.007

   Kill me - shoot me, but how it can be?
   Resulting file fits RAM.
   Not hard to guess that source files, which no one cares about already 
- are still hanging in the RAM...

   That's not right: as long as resulting file fits memory - and it fits 
memory in all (512MB, 256MB, 128MB) cases - this operation should take 
the _same_ time. (Actually before 128MB test, vmstat was saying that I 
have +70MB of free non-touched memory)

   So resume is quite simple: kernel loses *terribly* much time 
resorting read()s against write()s. Way _too_ _much_ time.

   I will try to download RedHat's AS kernel and play with page-cache.
   After all: if RH has included that feature in their kernels - that 
means it really make sense ;-)))

-- 
Ihar 'Philips' Filipau  / with best regards from Saarbruecken.
   -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
   * Please avoid sending me Word/PowerPoint/Excel attachments.
   * See http://www.fsf.org/philosophy/no-word-attachments.html
   -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
    There should be some SCO's source code in Linux -
       my servers sometimes are crashing.      -- People


  reply	other threads:[~2003-08-27 10:20 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <oJ5P.699.21@gated-at.bofh.it>
     [not found] ` <oJ5P.699.23@gated-at.bofh.it>
     [not found]   ` <oJ5P.699.25@gated-at.bofh.it>
     [not found]     ` <oJ5P.699.27@gated-at.bofh.it>
     [not found]       ` <oJ5P.699.19@gated-at.bofh.it>
     [not found]         ` <oQh2.4bQ.13@gated-at.bofh.it>
2003-08-26 19:08           ` cache limit Ihar 'Philips' Filipau
2003-08-26 19:23             ` Mike Fedyk
2003-08-27 10:21               ` Ihar 'Philips' Filipau [this message]
2003-08-27 11:07                 ` Nick Piggin
2003-08-27 16:03 Joseph Malicki
     [not found] <000801c36cb1$454d4950$1001a8c0@etofmv650>
2003-08-27 16:02 ` YoshiyaETO
     [not found] <n7lV.2HA.19@gated-at.bofh.it>
     [not found] ` <ofAJ.4dx.9@gated-at.bofh.it>
     [not found]   ` <ogZM.5KJ.1@gated-at.bofh.it>
     [not found]     ` <oyDw.5FP.33@gated-at.bofh.it>
2003-08-26 10:15       ` Ihar 'Philips' Filipau
2003-08-26 17:46         ` Mike Fedyk
     [not found] <m6Bv.3ys.1@gated-at.bofh.it>
     [not found] ` <mLY8.dO.5@gated-at.bofh.it>
2003-08-21  9:52   ` Ihar 'Philips' Filipau
2003-08-25  7:17     ` Takao Indoh
  -- strict thread matches above, loose matches on Subject: below --
2003-08-19  4:39 Anthony R.
2003-08-19  4:57 ` Nuno Silva
2003-08-19  5:33 ` Denis Vlasenko
2003-08-19  6:20   ` Andrew Morton
2003-08-19  9:05     ` J.A. Magallon
2003-08-19  9:16       ` Andrew Morton
2003-08-19  9:28         ` J.A. Magallon
2003-08-19  9:43           ` Andrew Morton
2003-08-19 13:32     ` Erik Andersen
2003-08-19 20:56       ` Andrew Morton
2003-08-19 14:28   ` Anthony R.
2003-08-19 18:26     ` Mike Fedyk
2003-08-19  5:42 ` Nick Piggin
2003-08-21  0:49 ` Takao Indoh
2003-08-21 23:47   ` Mike Fedyk
2003-08-25  2:45     ` Takao Indoh
2003-08-25  4:11       ` William Lee Irwin III
2003-08-25 22:58         ` Mike Fedyk
2003-08-26  9:46           ` William Lee Irwin III
2003-08-27  9:36             ` Takao Indoh
2003-08-27  9:45               ` William Lee Irwin III
2003-08-27 11:14                 ` Takao Indoh
2003-08-27 11:36                   ` William Lee Irwin III
2003-09-02 10:52                     ` Takao Indoh
2003-09-02 11:30                       ` William Lee Irwin III
2003-09-02 17:21                       ` Mike Fedyk
2003-08-27 16:01                 ` Joseph Malicki

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=3F4C8619.4020505@softhome.net \
    --to=filia@softhome.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mfedyk@matchmail.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