On Saturday 29 November 2008 11:19:47 Daniel Iliev wrote:
> Now let's put the assumptions aside and do a test.
>
> [EMAIL PROTECTED] # test $ cat /usr/portage/packages/All/* > test1
> [EMAIL PROTECTED] # test $ cp test1 test2
> [EMAIL PROTECTED] # test $ ls -lah
> total 2.3G
> drwxr-xr-x  2 root users 4.0K 2008-11-29 01:38 .
> drwxr-xr-x 44 root users 4.0K 2008-11-29 01:36 ..
> -rw-r--r--  1 root users 1.2G 2008-11-29 01:38 test1
> -rw-r--r--  1 root users 1.2G 2008-11-29 01:40 test2
> localhost test # filefrag *
> test1: 1125 extents found, perfection would be 10 extents
> test2: 1923 extents found, perfection would be 10 extents
> localhost test # time cat test1 > /dev/null
>
> real    0m26.747s
> user    0m2.110s
> sys     0m1.450s
> localhost test # time cat test2 > /dev/null
>
> real    0m29.825s
> user    0m1.780s
> sys     0m1.690s

This is not a test unfortunately. You did one run on one file and one run on 
another file. We do not know what else the machine was doing at that time, 
and that unknown is a considerable one.

Repeat your test eliminating this factor. Preferably, remount the filesystems 
after each run and repeat 1000 times. Then analyze the statistical 
distribution of your results. This should eliminate most random factors and 
give a more realistic real-world view.

-- 
alan dot mckinnon at gmail dot com

Reply via email to