Re: [PATCH v2] proc: speedup /proc/stat handling

From: Eric Dumazet
Date: Tue Jan 24 2012 - 19:22:28 EST


Le mardi 24 janvier 2012 Ã 16:12 -0800, Andrew Morton a Ãcrit :

> Did you measure the improvement from this patch?

Unfortunately I can not reboot the server where I noticed this
performance problem.

On the smaller one, performance improvement is about 20%, because the
second run of show_stat() can use data present in cpu cache.

On big machines, I guess the 128 bytes per possible cpu reservation can
avoid the second run. (since a typical cpuXXX line is smaller than 128
bytes)



--
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/