Subject: Re: namei caching of newly created files?
To: None <tech-perform@NetBSD.org>
From: Havard Eidnes <he@uninett.no>
List: tech-perform
Date: 01/20/2005 00:55:22
----Next_Part(Thu_Jan_20_00:55:22_2005_695)--
Content-Type: Text/Plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Well,

I tested the patch.  Attached below is the "before and after"
results from postmark.  As you'll see, the results improved
significantly, but perhaps not as much as I had hoped.  The namei
cache hit rate during the test went up to around 60%, compared to
30-40% earlier.

Anyway, this seems worthwhile.

Regards,

- H=E5vard

----Next_Part(Thu_Jan_20_00:55:22_2005_695)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Without the patch:

ultra# time postmark
PostMark v1.5 : 3/27/01
pm>set number 20000
pm>set transactions 50000
pm>run
Creating files...Done
Performing transactions..........Done
Deleting files...Done
Time:
        71 seconds total
        57 seconds of transactions (877 per second)

Files:
        45093 created (635 per second)
                Creation alone: 20000 files (2500 per second)
                Mixed with transactions: 25093 files (440 per second)
        24789 read (434 per second)
        25184 appended (441 per second)
        45093 deleted (635 per second)
                Deletion alone: 20186 files (3364 per second)
                Mixed with transactions: 24907 files (436 per second)

Data:
        144.06 megabytes read (2.03 megabytes per second)
        271.87 megabytes written (3.83 megabytes per second)
pm>quit
0.6u 62.1s 1:20.34 78.2% 0+0k 1+285io 0pf+0w
ultra# 


With the patch:

ultra# time postmark
PostMark v1.5 : 3/27/01
pm>set number 20000
pm>set transactions 50000
pm>run
Creating files...Done
Performing transactions..........Done
Deleting files...Done
Time:
        54 seconds total
        41 seconds of transactions (1219 per second)

Files:
        45093 created (835 per second)
                Creation alone: 20000 files (2500 per second)
                Mixed with transactions: 25093 files (612 per second)
        24789 read (604 per second)
        25184 appended (614 per second)
        45093 deleted (835 per second)
                Deletion alone: 20186 files (4037 per second)
                Mixed with transactions: 24907 files (607 per second)

Data:
        144.06 megabytes read (2.67 megabytes per second)
        271.87 megabytes written (5.03 megabytes per second)
pm>quit
0.6u 47.1s 1:02.67 76.2% 0+0k 120+149io 0pf+0w
ultra# 

(Obviously the wallclock part of the "time" output don't necessarily
represent "active" time in the program, because the commands to
postmark are typed in by hand.)

----Next_Part(Thu_Jan_20_00:55:22_2005_695)----