IRC log of #zope for Friday, 2013-02-01

fgsit looks to me that once you hit target the situation gets bad. _check_blob_cache_size() will clean just enough, as soon as a new file gets in there it will check again00:02
fgsif the size of your files are more or less similar you'll have the thread running continuously00:03
fgsand that will cause continuous locks00:03
J1mI didn't say there might not be contention. If there wasn't contention, you almost wouldn't need the lock.00:03
J1mNo, not really.00:04
J1mIn any case, it's the directories that matter, not the files.00:04
J1mAn improvement might be to release a directory lock while downloading from the server.  You'd have to get it again before adding the downloaded file.00:05
fgsthe check removes enough files so size <= target00:07
J1mThe blob cache uses 997 buckets.  You'd have to have quite a bit of activity to get contention on that many buckets.00:07
J1mYes, but it only locks a directory while it's removing a file from it.00:08
fgscrawlers getting all the files00:08
fgsno00:08
J1myes00:08
fgsit also does it when it's downloading it00:08
fgslook at _lock_blob00:08
fgsboth _lock_blob (used in 2 other methods)00:08
fgsand _check_blob_size_cache00:08
fgslock on the directory00:08
J1myes, it also gets locked while downloading00:09
J1mbut the crawler only locks one directory at a time.00:09
J1mand you'd have to be downloading hundreds of blobs simultaneously to get contention due to downloads.00:09
fgswhere is that assumption coming from?00:09
J1mwhat assumption?00:10
fgsthe crawler is requesting several files simultaneously00:10
fgsso it's locking several directories at the same time00:10
fgsand the cache size is also kicking it00:10
J1mno, look at the code00:10
J1mIt decides which blobs to reap without getting a lock.00:11
J1mThen it iterates over each one and for each one it locks it's directory while it's removing it.00:11
fgsi must be blind. it gets the list, iterates over it and tries to lock the directory for each blob00:12
*** mwilkes|away is now known as MatthewWilkes00:20
fgsoh well, i will re-read the code tomorrow when i have some sleep.00:23
fgsthanks for replying00:23
*** sp0cksbeard has quit IRC00:43
*** Spanktar has quit IRC00:56
*** Spanktar has joined #zope00:59
*** MatthewWilkes is now known as mwilkes|away01:02
*** Arfrever has quit IRC01:10
*** mwilkes|away is now known as MatthewWilkes01:13
*** MatthewWilkes is now known as mwilkes|away01:34
*** Spanktar has quit IRC01:43
*** kosh has quit IRC01:52
*** fdrake has quit IRC01:54
*** J1m has quit IRC01:54
*** _mup_ has quit IRC02:00
*** _mup_ has joined #zope02:00
*** Spanktar has joined #zope02:14
*** aodag has joined #zope02:40
*** aodag_ has joined #zope02:47
*** aodag has quit IRC02:49
*** daMaestro has quit IRC02:50
*** tiwula has quit IRC02:52
*** Spanktar has quit IRC03:06
*** polysix has quit IRC03:17
*** polysix has joined #zope03:18
*** mr_jolly has joined #zope03:18
*** thetet has quit IRC03:29
*** mcdonc has joined #zope03:33
*** mr_jolly has quit IRC03:36
*** mr_jolly has joined #zope03:38
*** mr_jolly has quit IRC03:46
*** mr_jolly has joined #zope03:51
*** kosh has joined #zope03:57
*** mcdonc has quit IRC04:14
*** nueces has joined #zope04:22
*** fdrake has joined #zope04:53
*** RichyB has quit IRC05:14
*** tiwula has joined #zope05:17
*** aodag_ has quit IRC06:04
*** mr_jolly has quit IRC06:11
*** jham_ has joined #zope06:19
*** jham has quit IRC06:19
*** aodag has joined #zope06:45
*** __mac__ has joined #zope06:50
*** yvl has quit IRC06:54
*** __mac__ has quit IRC07:02
*** __mac__ has joined #zope07:07
*** __mac__ has quit IRC07:26
*** nueces has quit IRC07:48
*** kosh has quit IRC07:50
*** __mac__ has joined #zope07:54
*** __mac__ has quit IRC07:56
*** zenwryly has quit IRC08:00
*** aodag_ has joined #zope09:03
*** aodag has quit IRC09:03
*** tiwula has quit IRC09:11
*** miano has joined #zope09:16
*** miano_ has quit IRC09:17
*** aodag_ has quit IRC09:27
*** aodag has joined #zope09:28
*** agroszer has joined #zope09:36
*** menesis has quit IRC09:45
*** tisto has joined #zope09:56
*** giacomos has joined #zope10:12
*** thetet has joined #zope10:12
*** tisto has quit IRC10:17
*** tisto has joined #zope10:18
*** goschtl has joined #zope10:36
*** eperez has joined #zope10:46
*** __mac__ has joined #zope10:58
*** avoinea has joined #zope10:59
*** sunew has joined #zope11:00
*** MrTango has joined #zope11:08
*** __mac__ has quit IRC11:10
*** aodag_ has joined #zope11:15
*** aodag has quit IRC11:16
*** aodag_ has quit IRC11:30
*** giacomos has quit IRC11:53
*** Gogo|gui has joined #zope11:53
*** AdamDangoor has joined #zope12:02
*** evilbungle has joined #zope12:08
*** giacomos has joined #zope12:08
*** mr_jolly has joined #zope12:09
*** giacomos has quit IRC12:10
*** goschtl has quit IRC12:10
*** thetet has quit IRC12:10
*** _mup_ has quit IRC12:10
*** kiorky has quit IRC12:10
*** _mup_ has joined #zope12:10
*** jakke1 has joined #zope12:11
*** jakke1 has left #zope12:11
*** jakke has joined #zope12:12
*** giacomos has joined #zope12:13
*** goschtl has joined #zope12:13
*** thetet has joined #zope12:13
*** kiorky has joined #zope12:13
*** fgs has quit IRC12:13
jakkeHi guys, I'm looking for a way to register an adapter from zope.schema interface to a python basetype (dict, list, string, ...)12:14
*** AdamDangoor has quit IRC12:14
jakkewhere can I find the interfaces for those basic python types? because I have to register the adapter for a specific interface12:14
*** AdamDangoor has joined #zope12:14
*** fgs has joined #zope12:15
*** mr_jolly has quit IRC12:18
*** mr_jolly_ has joined #zope12:21
*** mr_jolly_ is now known as mr_jolly12:21
*** mwilkes|away is now known as MatthewWilkes12:22
*** mr_jolly has left #zope12:23
*** RichyB has joined #zope12:33
*** AdamDangoor has quit IRC12:37
*** AdamDangoor has joined #zope12:37
*** maurits has joined #zope12:44
*** JT has quit IRC12:46
*** JT has joined #zope12:47
*** zagy has quit IRC13:09
*** J1m has joined #zope13:13
*** zagy has joined #zope13:21
*** zagy has quit IRC13:27
*** fdrake has quit IRC13:33
*** AdamDangoor has quit IRC13:34
*** AdamDangoor has joined #zope13:34
*** zagy has joined #zope13:36
*** mr_jolly has joined #zope14:02
*** LeoRochael has joined #zope14:07
*** crazydiamond has joined #zope14:08
*** yvl has joined #zope14:10
*** maurits has quit IRC14:18
*** AdamDangoor has quit IRC14:19
*** AdamDangoor has joined #zope14:19
*** giacomos has quit IRC14:23
*** giacomos has joined #zope14:23
*** maurits has joined #zope14:28
*** giacomos has quit IRC14:28
*** giacomos has joined #zope14:28
*** goschtl has quit IRC14:42
*** giacomos has quit IRC15:03
*** giacomos has joined #zope15:19
*** J1m has quit IRC15:21
*** supton has quit IRC15:23
*** thetet has quit IRC15:30
*** mr_jolly has quit IRC15:31
*** fdrake has joined #zope15:42
*** AdamDangoor has quit IRC15:53
*** AdamDangoor has joined #zope15:53
*** menesis has joined #zope15:59
*** J1m has joined #zope16:13
fgsso i've looked at the blob locking stuff today16:14
fgsfirst, there is an issue with zc.lockfile. it's logging the exception and raising16:14
fgsso while the raise is caught the logger.exception is filling my event log16:15
*** tisto has quit IRC16:16
fgsthe locking contention is only happening when the blob cache size is being cleaned16:16
*** eperez has quit IRC16:19
fgsi'm waiting for the crawler to kick again to have better numbers but judging by the number of entries in the event log it's kinda bad16:21
*** supton has joined #zope16:22
*** sp0cksbeard has joined #zope16:25
*** crazydiamond has quit IRC16:26
*** fredvd has joined #zope16:33
moo-_-fgs: you might want to try your luck on stackoverflow.com16:35
moo-_-here it's quiet like in a ghost town16:35
fgsi was talking to J1m last night16:35
fgsthat was mostly directed to him16:35
fgsand it was not a question16:36
moo-_-fgs: aha :)16:37
moo-_-fgs: my backlog is so full of join and parts entries so missed the earlier conversation, sorry :(16:37
fgsno worries :)16:37
fgsi guess in my case the problem is the crawler is fetching things in the same order over and over again16:40
fgsthe last object being crawled causes the oldest item(s) to be cleaned while the crawler goes back to the first one16:41
fgs(oldest one) but that directory is locked by the cleaner thread16:42
fgsperhaps in my case 10% is not enough16:42
fgsbut i will see if that's what's happening once my blob cache hits 1G16:43
*** miano has quit IRC16:46
*** kosh has joined #zope16:53
*** AdamDangoor has quit IRC16:57
*** AdamDangoor has joined #zope16:58
*** Gogo|gui has quit IRC17:02
*** crazydiamond has joined #zope17:08
*** crazydiamond has quit IRC17:10
*** crazydiamond has joined #zope17:11
*** mr_jolly has joined #zope17:14
*** crazydiamond has quit IRC17:20
*** menesis has quit IRC17:23
*** menesis has joined #zope17:30
*** zagy has quit IRC17:32
*** sunew has quit IRC17:40
suptongiven a list of transaction records for ZODB, and contained data records, how can I tell if an oid is deleted in the most recent transaction?  Does Connection.get() raise a KeyError on an oid that is in some old transaction, but no longer existing in the most current?17:49
benjisupton: I don't remember the exact details, but something like that.  Trying it out to see should be easy.17:59
J1msupton, for the first part of your question, delete data records have a data length of 0.18:00
J1mfor the second part, yes18:00
J1mof course, afaik, the only way to get delete records is to use zc.zodbdgc.18:01
J1malso, ftr, I hand in #zodb, although I never tols anyone before and it's kinda lonely there :)18:02
suptonJ1m: good to know, thanks18:02
*** AdamDangoor has quit IRC18:11
*** AdamDangoor has joined #zope18:11
*** jakke has left #zope18:19
*** crazydiamond has joined #zope18:19
*** kosh has quit IRC18:24
*** supersheep has quit IRC18:35
*** agroszer has quit IRC18:39
*** tiwula has joined #zope19:01
*** giacomos has quit IRC19:03
*** goschtl has joined #zope19:05
*** Gogo|gui has joined #zope19:07
*** fredvd has quit IRC19:09
*** Spanktar has joined #zope19:24
*** maurits has quit IRC19:27
*** Gogo|gui has quit IRC19:31
*** Gogo|gui1 has joined #zope19:31
*** Gogo|gui1 has quit IRC19:33
*** Gogo|gui has joined #zope19:33
*** Gogo|gui has quit IRC19:35
*** Gogo|gui has joined #zope19:37
*** nande has joined #zope19:47
*** Gogo|gui has quit IRC19:48
*** AdamDangoor has quit IRC19:52
*** AdamDangoor has joined #zope19:52
*** dayne has joined #zope20:00
*** nueces has joined #zope20:10
*** Gogo|gui has joined #zope20:18
*** evilbungle has quit IRC20:20
*** AdamDangoor_ has joined #zope20:24
*** AdamDangoor has quit IRC20:26
*** Gogo|gui has quit IRC20:28
*** MatthewWilkes is now known as mwilkes|away20:31
*** mr_jolly has quit IRC20:43
*** MrTango has quit IRC20:48
*** mr_jolly has joined #zope20:49
*** davisagli has joined #zope21:00
*** davisagli has left #zope21:00
*** mr_jolly has quit IRC21:02
*** KageSenshi has quit IRC21:06
*** avn has quit IRC21:06
*** KageSenshi has joined #zope21:07
*** Gogo|gui has joined #zope21:09
*** Gogo|gui1 has joined #zope21:22
*** Gogo|gui has quit IRC21:24
*** zagy has joined #zope21:37
*** maurits has joined #zope21:39
*** avoinea has quit IRC21:57
*** nueces has quit IRC21:59
*** Gogo|gui1 has quit IRC21:59
*** nueces has joined #zope21:59
*** nueces has quit IRC22:08
*** nueces has joined #zope22:08
*** roq_ has left #zope22:32
*** LeoRochael has quit IRC22:37
mgedminJ1m, could I get a copy of authors.txt for svn->git conversion?22:39
mgedminI promise not to use it for evil22:39
J1mheh, of course22:39
J1mbut it'll be just a snapshot22:40
*** AdamDangoor has joined #zope22:42
*** AdamDangoor has quit IRC22:45
*** goschtl has quit IRC22:49
*** daMaestro has joined #zope22:52
*** Gogo|gui has joined #zope22:59
*** Gogo|gui has quit IRC23:04
*** supton_ has joined #zope23:13
*** supton_ has quit IRC23:14
*** supton has quit IRC23:17
*** m8 has joined #zope23:30
*** avn has joined #zope23:40

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