[Bug 207022] stat() 4 to 16 times slower on FreeBSD/UFS than on Linux/Ext4

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 8 20:19:06 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207022

--- Comment #2 from Fabiano Sidler <fabianosidler at swissonline.ch> ---
(In reply to Steven Hartland from comment #1)

Hi Steven! Thanks for replying so fast! This is the cstat source:
=== snip ===
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

int main(int argc, char* argv[])
{
        struct stat buf;
        stat("/home/user/file1", &buf);
        /* 4198 stat calls */
        stat("/home/user/file4200", &buf);
}
=== snap ===

[root at server ~]# sysctl kern.timecounter
kern.timecounter.tsc_shift: 1
kern.timecounter.smp_tsc_adjust: 0
kern.timecounter.smp_tsc: 0
kern.timecounter.invariant_tsc: 1
kern.timecounter.fast_gettime: 1
kern.timecounter.tick: 1
kern.timecounter.choice: TSC-low(-100) ACPI-fast(900) i8254(0) HPET(950)
dummy(-1000000)
kern.timecounter.hardware: HPET
kern.timecounter.alloweddeviation: 5
kern.timecounter.stepwarnings: 0
kern.timecounter.tc.TSC-low.quality: -100
kern.timecounter.tc.TSC-low.frequency: 1198612000
kern.timecounter.tc.TSC-low.counter: 1461596423
kern.timecounter.tc.TSC-low.mask: 4294967295
kern.timecounter.tc.ACPI-fast.quality: 900
kern.timecounter.tc.ACPI-fast.frequency: 3579545
kern.timecounter.tc.ACPI-fast.counter: 16606739
kern.timecounter.tc.ACPI-fast.mask: 16777215
kern.timecounter.tc.i8254.quality: 0
kern.timecounter.tc.i8254.frequency: 1193182
kern.timecounter.tc.i8254.counter: 4783
kern.timecounter.tc.i8254.mask: 65535
kern.timecounter.tc.HPET.quality: 950
kern.timecounter.tc.HPET.frequency: 14318180
kern.timecounter.tc.HPET.counter: 1292503749
kern.timecounter.tc.HPET.mask: 4294967295

[root at sbach ~]# sysctl hw.model hw.ncpu hw.physmem hw.usermem
hw.model: Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
hw.ncpu: 8
hw.physmem: 34334208000
hw.usermem: 33838137344

Both boxes are ESXi guests.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-amd64 mailing list