/srv/irclogs.ubuntu.com/2015/05/21/#launchpad-dev.txt

blrwgrant: have you looked at benchmarking pack.compression?02:53
wgrantblr: No, but smart people have probably already set it sensibly.02:55
wgrantThere's nothing in our situation that should cause the defaults to be wrong, I don't think.02:55
blrwgrant: can you think of any additional per repo defaults we need other than logallrefupdates and writeBitmaps?03:16
blrwgrant: ensure_config is now pulling those values from git.config.yaml in turnip's root rather than defining them inline in the function03:16
blrafaict there are no analagous per repo config variables for git repack's arguments03:22
wgrantblr: some of them exist, but stuff like -l doesn't03:23
blrhttp://git-scm.com/docs/git-config.html does warn that it isn't comprehensive, but I only see 'useDeltaBaseOffset', 'packKeptObjects' and 'writeBitmaps'03:24
wgrantblr: git help config shows a number of pack.* options.03:26
wgrantrepack.* is just stuff that makes sense only for repack03:26
blrwgrant: ah, I see --max-pack-size will honour pack.packSizeLimit if set03:30
wgrantblr: Yeah. I don't think we care about pack size at the moment, though.03:30
blrdepth defaults to 5003:31
wgrantWe probably want to set window and depth up a way, but also limit pack.windowMemory. I'd set windowMemory to like 2g for now, and we can tweak as we go.03:33
blrhmm the repack docs don't mention if --window-memory takes a value from pack.windowMemory03:34
wgrant        if (!strcmp(k, "pack.windowmemory")) {03:35
wgrant                window_memory_limit = git_config_ulong(k, v);03:35
wgrant                return 0;03:35
blrhere I was thinking I could avoid looking at git source03:35
wgrant        }03:35
wgrant--window-memory overrides that.03:35
wgrantHeh, no.03:35
wgrantIt's pretty bad, but you get used to it.03:36
blrwgrant: {depth: 100, window: 20}? (doubling defaults)03:39
wgrantblr: Let's make both 250. That's semi-aggressive, and windowMemory will save us if it goes awry.03:40
blrcool03:41
wgrantAn object to pass -f would also be useful, but it shouldn't be the default.03:41
wgrantActually, maybe we should make the default depth and window less aggressive, but allow it to be overridden.03:44
wgrantHmm.03:44
wgrant100/100 with options, perhaps.03:44
wgrant250/250 is slower than I'd remembered.03:45
blrsure03:45
blrwgrant: as we're now calling ensure_config on repo init, presumably it is no longer needed in PackBackendProtocol.requestReceived()?04:07
blrhowever, existing repositories would be in an undefined state04:08
blrgiven we don't have any means of changing configuration, ensure_config _for now_ can be treated idempotently, but something we may need to consider later04:09
blrso I would be inclined to leave it there...04:09
blrsorry, thinking out loud really04:10
wgrantblr: The idea is that it's cheap and safe enough to run before every write operation.04:22
wgrantSo when we change it we don't have to do any bulk operation.04:23
blryep, that makes sense.04:24
blrwgrant: repack-api ready for review.04:35
wgrantblr: Thanks, looking.04:35
blrwgrant: r158 has the git config yaml file, whoops.04:37
blrwgrant: 3x gives you a stronger, more flavourful json extraction...04:53
wgrantHeh04:53
sil2100Hey!15:34
sil2100I have a question about launchpad authorization tokens15:34
sil2100I would like to authorize a script that would be running outside of my local computer with my credentials15:35
sil2100Someone mentioned that when an app is authorized, there should be some credentials file created in ~/.launchpadlib which I should be able to re-use elsewhere15:36
sil2100But I couldn't find it, but I didn't authorize for 'forever', so maybe that's why15:36
cjwatsonsil2100: It lives in your desktop keyring, in fact.  But maybe you actually want to re-login with Launchpad.login_with(credentials_file=...).15:43
cjwatsonsil2100: Is the other computer entirely under your control?15:44
sil2100cjwatson: not entirely, I was considering options on how to best set-up something like that on lillypilly or chinstrap15:45
sil2100cjwatson: probably not safe enough15:45
sil2100hmm15:45
cjwatsonsil2100: You'd be better off with a separate bot user, or a little dedicated openstack instance or something15:47
sil2100Indeed!15:49
sil2100Anyway, thanks :)15:49

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!