Re: /proc/stat [Subject changed]

From: Bernd Eckenfels
Date: Mon Dec 05 2005 - 10:57:46 EST


In article <AF41465C-AE05-4077-A52F-CA08796B925A@xxxxxxxxx> you wrote:
> I would greatly appreciate it if anyone in the know, could spare the
> two minutes
> to have a look at my question below, or tell me where I should look
> to get it
> answered.

the files in proc are all to some degree atomic to some not. You will have
to look into the source for the specific file to see the details. For
smaller files if they fit into a single 4k page you have good chances.
Bigger files can cause all kind of trouble. (most often you miss new
records)

In case of stat the readings should be consistent within itself since all
cpu lines fit into a single page.

Gruss
Bernd
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/