public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
To: Matt Mackall <mpm@selenic.com>
Cc: Andrew Morton <akpm@osdl.org>,
	arjanv@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] shrink hash sizes on small machines, take 2
Date: Thu, 15 Apr 2004 12:16:36 -0300	[thread overview]
Message-ID: <20040415151635.GG2085@logos.cnet> (raw)
In-Reply-To: <20040410232707.GU6248@waste.org>

On Sat, Apr 10, 2004 at 06:27:07PM -0500, Matt Mackall wrote:
> The following attempts to cleanly address the low end of the problem,
> something like my calc_hash_order or Marcelo's approach should be used
> to attack the upper end of the problem.
> 
> 8<
> 
> Shrink hashes on small systems
> 
> Base hash sizes on available memory rather than total memory. An
> additional 50% above current used memory is considered reserved for
> the purposes of hash sizing to compensate for the hashes themselves
> and the remainder of kernel and userspace initialization.

Hi Matt, 

As far as I remember from my tests booting with 8MB yields 0-order (one page) 
dentry/inode hash tables, and 16MB yields 
1-order dentry/0-order inode hash. 

So we can't go lower than 1 page on <8MB anyway (and we dont). What 
is the problem you are seeing ?

Your patch changes 16MB to 0-order dentry hashtable?

On the higher end, we still need to figure out if the "huge"
hash tables (1MB dentry/512K inode on 4GB box, upto 8MB hash dentry 
on 16GB box) are really worth it. 

Arjan seems to be clipping the dentry to 128K on RH's kernels. 
I couldnt find much of a difference on dbench performance from 1MB to 512K 
or 128K dhash. Someone willing to help with SDET or different tests?

Thanks!

  reply	other threads:[~2004-04-15 15:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-10 23:27 [PATCH] shrink hash sizes on small machines, take 2 Matt Mackall
2004-04-15 15:16 ` Marcelo Tosatti [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-05-18 12:32 Gerald Schaefer
     [not found] ` <20040518174210.GD28735@waste.org>
2004-05-19 17:40   ` Gerald Schaefer

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=20040415151635.GG2085@logos.cnet \
    --to=marcelo.tosatti@cyclades.com \
    --cc=akpm@osdl.org \
    --cc=arjanv@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpm@selenic.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