Date: Mon, 08 Feb 2016 20:19:06 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 207022] stat() 4 to 16 times slower on FreeBSD/UFS than on Linux/Ext4 Message-ID: <bug-207022-8-YTAAtvQJ8X@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-207022-8@https.bugs.freebsd.org/bugzilla/> References: <bug-207022-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207022 --- Comment #2 from Fabiano Sidler <fabianosidler@swissonline.ch> --- (In reply to Steven Hartland from comment #1) Hi Steven! Thanks for replying so fast! This is the cstat source: =3D=3D=3D snip =3D=3D=3D #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); } =3D=3D=3D snap =3D=3D=3D [root@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@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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207022-8-YTAAtvQJ8X>