Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2001 16:57:02 -0600
From:      Robert Gray <bob@cs.colorado.edu>
To:        Garance A Drosihn <drosih@rpi.edu>
Cc:        "David W. Chapman Jr." <dwcjr@inethouston.net>, "Rasputin" <rasputin@submonkey.net>, "Doug Poland" <doug@polands.org>, stable@FreeBSD.ORG
Subject:   Re: dirpref gives massive performance boost 
Message-ID:  <200110182257.QAA80680@calypso.boulderlabs.com>
In-Reply-To: Your message of "Thu, 18 Oct 2001 16:35:07 MDT."

next in thread | raw e-mail | index | archive | help
A related question that I was wondering,
  "Does my /kernel have the new dirpref code?"

Here's how I tried to answer the question for myself.
I'm not an expert, so correct me if necessary.

In file ufs/ffs/ffs_alloc.c find  the routine
(ffs_alloc.c,v 1.64.2.2 2001/09/21 19:15:21 dillon)
   ffs_dirpref
which is about 95 lines of code.  In the old version,
(src/sys/ufs/ffs/ffs_alloc.c,v 1.64.2.1 2000/03/16 08:15:53 ps)
   ffs_dirpref is about 15 lines of code.

So, if you have the source code, you can tell if your
/kernel has the new feature.
If you didn't build your own kernel, you might
be able to gleen the information from the symbol table.

Run
   nm -n /kernel >/tmp/n

Then look at the size of ffs_dirpref by subtracting addresses.


4.4 SNAP, (aprox 2001-10-11)
c02baf14 t ffs_dirpref 
c02bb1dc T ffs_blkpref
   -----
	 2c8  (larger amount of code)


4.4 Release
c01f55d0 t ffs_dirpref 
c01f5638 T ffs_blkpref
   -----
	  68   (small amount of code)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110182257.QAA80680>