Re: procfs - Design Issue

2008-08-19 Thread Thomas Bushnell BSG
On Tue, 2008-06-17 at 00:18 +0100, Samuel Thibault wrote: > Hello, > > Madhusudan C.S, le Tue 17 Jun 2008 04:12:42 +0530, a écrit : > > 1. Is it better to free all those nodes as soon as they are displayed and > > create them whenever they are required? > > Just do that. No need to cache anythi

Re: procfs - Design Issue

2008-06-16 Thread Samuel Thibault
Hello, Madhusudan C.S, le Tue 17 Jun 2008 04:12:42 +0530, a écrit : > 1. Is it better to free all those nodes as soon as they are displayed and > create them whenever they are required? Just do that. No need to cache anything. Just let the reference counting free the node when the client doesn'

procfs - Design Issue

2008-06-16 Thread Madhusudan C.S
Hi all, I have a design question regarding implementation of procfs. Whenever we look into /proc, it is very likely that its contents change(directory names with PIDs), since processes are created and die. So everytime it is better to fetch this information whenever a contents are looked