[merge] bzr uses permissions of containing directory

John Arbash Meinel john at arbash-meinel.com
Fri Dec 16 13:48:46 GMT 2005


Michael Ellerman wrote:
> On Thu, 15 Dec 2005 16:05, John Arbash Meinel wrote:
> 
>>After much gnashing of teeth, I have updated the Transport interface,
>>Branch itself, such that it know checks to see what the mode of '.bzr'
>>is, and then uses that to determine the permissions for all files
>>underneath.
>>You can see my changes here:
>>http://bzr.arbash-meinel.com/branches/bzr/permissions/
> 
> 
> A few timings:
> 
> My branch only has 87 revisions, but lots of files. 20,848 weaves, 21,280 
> files under .bzr in total. It's currently not clean if that matters, 113 
> modified & 12 unknown.
> 
> concordia ~/src/work$ time bzr branch kexec/ kexec-branch
> 208.64user 28.50system 14:36.12elapsed 27%CPU (876 seconds)
> 
> concordia ~/src/work$ time bzr branch kexec/ kexec-branch
> 235.37user 30.72system 14:28.08elapsed 30%CPU (868 seconds)
> 
> concordia ~/src/work$ time ../bzr/permissions/bzr branch kexec/ kexec-branch
> 236.24user 32.79system 18:34.04elapsed 24%CPU (1114 seconds)
>                        ^^^^^^^^
> 
> concordia ~/src/work$ time ../bzr/permissions/bzr branch kexec/ kexec-branch
> 227.13user 30.86system 15:30.18elapsed 27%CPU (930 seconds)
> 
> concordia ~/src/work$ time ../bzr/permissions/bzr branch kexec/ kexec-branch
> 170.39user 24.43system 15:26.65elapsed 21%CPU (926 seconds)
> 
> Worst case it's 27% slower, best case it's only 5%. Not sure what accounts for 
> the 18:00 time?

Did you run the permissions branch before? I'm just wondering if it had
to compile all of the python files, which would add a lot of overhead.

> 
> As a comparison, cloning the same tree with git (it's versioned by both):

Thanks for the numbers. Can you try it with _set_file_mode = False.
I'm guessing that would bring the load back a lot.

Again, thanks for the performance testing.
John
=:->

> 
> concordia ~/src/work$ /usr/bin/time git clone kexec/ kexec-branch
> defaulting to local storage area
> Packing 146363 objects
> 265.86user 15.55system 7:13.05elapsed 64%CPU (433 seconds)
> 
> cheers
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051216/88936186/attachment.pgp 


More information about the bazaar mailing list