Better debug log levels for autotest jobs
Hi. Our autotest runs log just way too much debug stuff. A 20-minute run often creates >10GB uncompressed data. That's enough that compressing & transporting it for archival slows down the test significantly.
Ceph devs, I need your help in determining what debug logs can be turned down a notch or two without losing anything really valuable.
The base config is at ceph-autotests.git teuthology/ceph.conf, relevant lines pasted below:
[mon]
lockdep = 1
debug mon = 20
debug paxos = 20
debug auth = 20
debug ms = 1
[osd]
lockdep = 1
debug ms = 1
debug osd = 25
debug monc = 20
debug journal = 20
debug filestore = 20
[mds]
lockdep = 1
debug ms = 1
debug mds = 20
debug auth = 20
debug monc = 20
mds debug scatterstat = true
mds verify scatter = true
mds log max segments = 2
mds cache size = 10000
mds debug frag = true
What can I turn down? If I don't get helpful suggestions, everything 20 goes down to 10 ;)
The worst that happens if we have the defaults not include some debug you wanted see is you make your test override it and re-run; for example,
class ceph_dbench(skeleton.CephTest):
...
@skeleton.role('client')
def init_025_moar_debug(self):
self.ceph_conf['osd']['debug osd'] = 9000should do it just fine.
(We can make that even easier, if it becomes commonplace enough. My motto is to first feel the pain. YAGNI and all that.)
Signature · 1 line
:(){ :|:&};:Looking at what we have here, we are unlikely to need:
auth, paxos, monc
above 5 (or probably 1). The code these run is pretty stable and hasn't exhibited significant issues in a long time IIRC.
Unfortunately the MDS is one we're likely to want to keep high, but I suppose that with debug mds 10 if there are problems we can probably at least get an idea of what they are and then re-run tests with more debugging. Similarly with the OSDS...we definitely don't need debug osd 25, though I'm not sure that turning it down to 20 would do much anyway.
Probably just turn 20 to 10 like you said, except the ones I mentioned above. These tests are easy to reproduce with higher debugging if needed. -Greg
On Wednesday, April 27, 2011 at 4:25 PM, Tommi Virtanen wrote:
Hi. Our autotest runs log just way too much debug stuff. A 20-minute
Quoted 63 lines
run often creates >10GB uncompressed data. That's enough that compressing & transporting it for archival slows down the test significantly.
Ceph devs, I need your help in determining what debug logs can be turned down a notch or two without losing anything really valuable.
The base config is at ceph-autotests.git
teuthology/ceph.conf, relevant lines pasted below:[mon]
lockdep = 1
debug mon = 20
debug paxos = 20
debug auth = 20
debug ms = 1[osd]
lockdep = 1
debug ms = 1
debug osd = 25
debug monc = 20
debug journal = 20
debug filestore = 20[mds]
lockdep = 1
debug ms = 1
debug mds = 20
debug auth = 20
debug monc = 20
mds debug scatterstat = true
mds verify scatter = true
mds log max segments = 2
mds cache size = 10000
mds debug frag = trueWhat can I turn down? If I don't get helpful suggestions, everything 20 goes down to 10 ;)
The worst that happens if we have the defaults not include some debug you wanted see is you make your test override it and re-run; for example,
class
ceph_dbench(skeleton.CephTest):
...
@skeleton.role('client')
definit_025_moar_debug(self):
self.ceph_conf['osd']['debug osd'] = 9000should do it just fine.
(We can make that even easier, if it becomes commonplace enough. My motto is to first feel the pain. YAGNI and all that.)
Signature · 5 lines
:(){ :|:&};: -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 38 lines · Tommi Virtanen
Hi. Our autotest runs log just way too much debug stuff. A 20-minute run often creates >10GB uncompressed data. That's enough that compressing & transporting it for archival slows down the test significantly.
Ceph devs, I need your help in determining what debug logs can be turned down a notch or two without losing anything really valuable.
The base config is at ceph-autotests.git
teuthology/ceph.conf, relevant lines pasted below:[mon]
lockdep = 1
debug mon = 20
debug paxos = 20
debug auth = 20
debug ms = 1[osd]
lockdep = 1
debug ms = 1
debug osd = 25
debug monc = 20
debug journal = 20
debug filestore = 20[mds]
lockdep = 1
debug ms = 1
debug mds = 20
debug auth = 20
debug monc = 20
mds debug scatterstat = true
mds verify scatter = true
mds log max segments = 2
mds cache size = 10000
mds debug frag = true
Quoted 2 lines
What can I turn down? If I don't get helpful suggestions, everything 20 goes down to 10 ;)
That's my initial suggestion.
I wonder, though, if we should really turn it all the way off. That will make our tests run much faster and mimic real life more closely. If something fails, we can re-run that one test with logging and go from there. As long as that part is easy enough to do...
sage
Quoted 25 lines
The worst that happens if we have the defaults not include some debug you wanted see is you make your test override it and re-run; for example,
class
ceph_dbench(skeleton.CephTest):... @skeleton.role('client') def init_025_moar_debug(self): self.ceph_conf['osd']['debug osd'] = 9000should do it just fine.
(We can make that even easier, if it becomes commonplace enough. My motto is to first feel the pain. YAGNI and all that.)
Signature · 5 lines
:(){ :|:&};: -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html