Messages in this thread | | | From | Bernd Eckenfels <> | Subject | Re: /proc/stat [Subject changed] | Date | Mon, 05 Dec 2005 16:58:28 +0100 |
| |
In article <AF41465C-AE05-4077-A52F-CA08796B925A@2sheds.de> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |