Understanding VFS Filesystem using proc fs

2009-10-19 Thread Leena M.
Hi All , I have sprinkled printk's in each and every function in VFS and Filesystem which I want to understand. I want to trace the functions which are executed when I execute a system call in user space for my process. I want to print the trace only for my process , so i want to somehow

Re: pdflush deprecated by per-bdi writeout

2009-10-19 Thread Joel Fernandes
Thanks for sharing! Peter, I think spindle is used just as another word for slow device which I guess could be any other type of slow storage medium like iSCSI or loop over NFS. In some degree, I agree with that. However, specificly to block device like hard disk, where things could made

Re: pdflush deprecated by per-bdi writeout

2009-10-19 Thread Joel Fernandes
IMO yes, but starved better :) Not sure if I write it correctly, but here is my understanding: say you have 4 pdflush threads, competing to write to a disk. All are busy, so you can say all are quite starved. But the writing process (even though it's using async style) doesn't know about it.

RE: Understanding VFS Filesystem using proc fs

2009-10-19 Thread Rajat Jain
Hi, Just developing upon Mulyadi's idea: A quick idea would be to implement something like /proc/tracethispid which read integer. Then you do i.e echo /proc/tracethispid and store this integer in a kernel variable. A simpler technique could simply be storing the current pid in the