OCFS2: Add trace event and replace mlog(0).
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 34 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 34 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Ocfs2-devel] [PATCH 00/34] OCFS2: Add trace event and replace mlog(0).
Quoted 19 lines · Joel Becker
Quoted 9 lines · Tao Ma
Quoted 8 lines · Joel Becker
Quoted 6 lines · Tao Ma
Quoted 4 lines · Joel Becker
Overall this seems pretty straightforward. There wasn't a lot
of editing of masklog entries; we still have a million tracepoints. I wonder how much memory that will use. Have you checked the space usage of all the sysfs files for all of our tracepoints?Sorry, I don't know how to check the space usage of these files. any tips?
Quoted 8 lines
Quoted 3 lines
Just count the number of files and directories added to sysfs.
I believe the files disappear when not open, but the directories I think have inode and dentry structures around permanently..OK, so
#find/sys/kernel/debug/tracing/events/ocfs2-type d|wc -l give me 319. Every trace event dir has 4members(enable,filter,format and id). So it contains about 1600(dir+files).
Quoted 10 lines
I think what matters to count is dirs, because files disappear
when you're not using them.
If you have 319 trace event directories, that's 319 inodes. On
my x86, a vanilla struct inode is 360 bytes and a dentry is 136 bytes. That's 154K always in RAM for these knobs. I gotta say that I'm not too worried about 154K. Onx86_64(ca-build24) this grows to 241K. I imagine it will double when cluster and dlm are moved to similar trace events.
Are we OK with 300K on x86 and 500K onx86_64always used up by
these tracing entries?
yeah, it isn't much I guess.
And for ext4, yes, it has a small number because they have a very limited debug tracing than us, maybe because they evolved from ext2->ext3->ext4. So the code base is really stable now. And I guess we can remove some of the trace events if we feel that the code is stable enough. ;)
Regards,
Tao