|
From: Bryan O'S. <bo...@se...> - 2005-03-15 18:03:39
|
On Tue, 2005-03-15 at 09:44 -0800, Robert Walsh wrote: > > >You often can't seek on stuff in /proc - is maps any different? > > > > > /proc/<pid>/maps is seekable. In fact, all the file-like-files are > > seekable, I think. > > Maybe maps is special or this is a recent feature? The stuff that > ganglia looks at (like loadavg) definitely isn't seekable on all the > platforms it cares to support, so it has to open them each time. It's new in 2.6. A lot of /proc files have changed over to the seq_file interface, which supports seeking (although not to random offsets). Some have not, though. <b -- Bryan O'Sullivan <bo...@se...> |