--8323328-743646087-1010658182=:2363
Content-Type: TEXT/PLAIN; charset=US-ASCII
I've made changes to the kernel to allow the decay constants for load
average computation to be modified via /proc/sys/kernel/load-exp.
What this allows you to do is make the three loadavgs more or less
responsive to changes in system load.
There is an accompanying utility, loadavgcalc, that will help calculate
the values to feed into /proc/sys/kernel/load-exp.
This patch is against 2.5.2-pre9.
It probably isn't of interest to most people, but some might like to have
a play.
The loadavgcalc program is at:
http://barbarella.hawaga.org.uk/~benc/loadavgcalc-0.1.tar.gz
The patch is attached to this message.
Ben
-- Ben Clifford benc@hawaga.org.uk http://www.hawaga.org.uk/ben/ GPG: 30F06950 - signed/encrypted mail encouraged=WARNING= Do not ever send e-mail to philip@hawaga.org.uk =WARNING=
--8323328-743646087-1010658182=:2363 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="loadavg-0.1.patch" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.LNX.4.33.0201100223020.2363@barbarella.hawaga.org.uk> Content-Description: Content-Disposition: attachment; filename="loadavg-0.1.patch"
SW5kZXg6IGxpbnV4L0RvY3VtZW50YXRpb24vc3lzY3RsL2tlcm5lbC50eHQN Cj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT0NClJDUyBmaWxlOiAvbW50L3doaXRl L2N2c3Jvb3QvbGludXgvRG9jdW1lbnRhdGlvbi9zeXNjdGwva2VybmVsLnR4 dCx2DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMS4xLjENCnJldHJpZXZpbmcg cmV2aXNpb24gMS4xLjEuMS4yLjENCmRpZmYgLXUgLXIxLjEuMS4xIC1yMS4x LjEuMS4yLjENCi0tLSBsaW51eC9Eb2N1bWVudGF0aW9uL3N5c2N0bC9rZXJu ZWwudHh0CTIwMDIvMDEvMDcgMDg6MDM6NTAJMS4xLjEuMQ0KKysrIGxpbnV4 L0RvY3VtZW50YXRpb24vc3lzY3RsL2tlcm5lbC50eHQJMjAwMi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QoYXZlbnJ1blswXSwgbG9hZF9leHBzWzBdLCBh Y3RpdmVfdGFza3MpOw0KKwkJQ0FMQ19MT0FEKGF2ZW5ydW5bMV0sIGxvYWRf ZXhwc1sxXSwgYWN0aXZlX3Rhc2tzKTsNCisJCUNBTENfTE9BRChhdmVucnVu WzJdLCBsb2FkX2V4cHNbMl0sIGFjdGl2ZV90YXNrcyk7DQogCX0NCiB9DQog DQo= --8323328-743646087-1010658182=:2363-- - 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/