Solving: samba registry with client programs
Stef Walter
stefw at gnome.org
Mon Apr 23 05:56:01 MDT 2012
On 04/22/2012 08:00 AM, Volker Lendecke wrote:
> Stef, would it be possible that you test how much it costs?
> A typical [global] with possibly one or two dozen settings?
> I would guess the overhead can not be measured.
Here you go. At 24 settings changes to the global section, the
difference before and after the patch is lost in the noise. The time in
this test is overwhelmed by the startup time for the process, and
initialization.
I also did another test with 10000 settings changes. That one has a
bigger difference before and after the patch. However, it's hard to
argue though that there would be 10000 changes in the [global] section
(which is all that's mirrored for client apps) worth changing :)
Cheers,
Stef
24 changes without registry mirror:
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 0
real 0m0.141s
user 0m0.003s
sys 0m0.003s
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 0
real 0m0.138s
user 0m0.000s
sys 0m0.006s
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 0
real 0m0.133s
user 0m0.003s
sys 0m0.004s
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 0
real 0m0.136s
user 0m0.004s
sys 0m0.002s
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 0
real 0m0.138s
user 0m0.002s
sys 0m0.004s
24 changes with registry mirror:
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 0
real 0m0.168s
user 0m0.005s
sys 0m0.004s
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 0
real 0m0.133s
user 0m0.003s
sys 0m0.007s
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 0
real 0m0.140s
user 0m0.006s
sys 0m0.003s
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 0
real 0m0.139s
user 0m0.008s
sys 0m0.002s
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 0
real 0m0.117s
user 0m0.009s
sys 0m0.000s
10000 changes without registry mirror
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 1
real 0m0.486s
user 0m0.323s
sys 0m0.023s
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 1
real 0m0.473s
user 0m0.313s
sys 0m0.031s
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 1
real 0m0.480s
user 0m0.323s
sys 0m0.021s
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 1
real 0m0.484s
user 0m0.323s
sys 0m0.024s
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 1
real 0m0.474s
user 0m0.321s
sys 0m0.024s
10000 changes with registry mirror
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 1
real 0m1.558s
user 0m0.569s
sys 0m0.643s
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 1
real 0m1.357s
user 0m0.569s
sys 0m0.649s
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 1
real 0m1.675s
user 0m0.581s
sys 0m0.638s
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 1
real 0m1.366s
user 0m0.566s
sys 0m0.659s
[root at stef-desktop source3]# time ./bin/net conf setparm global workgroup 1
real 0m1.364s
user 0m0.571s
sys 0m0.649s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: repeat-net-setparm.patch
Type: text/x-patch
Size: 652 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120423/e2a7b14d/attachment.bin>
More information about the samba-technical
mailing list