]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Add tsb-ratio sysctl.
authorDavid S. Miller <davem@davemloft.net>
Mon, 17 Nov 2008 07:49:24 +0000 (23:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Dec 2008 17:16:59 +0000 (09:16 -0800)
commit9478ed6535ef92d25e7137553cbce5eb492a061f
tree41909ff5855dead73c915af1300dc6b36d13ffe5
parentecb9d06a7053b9e21ef638b0851eb3f9cb07728f
sparc64: Add tsb-ratio sysctl.

Add a sysctl to tweak the RSS limit used to decide when to grow
the TSB for an address space.

In order to avoid expensive divides and multiplies only simply
positive and negative powers of two are supported.

The function computed takes the number of TSB translations that will
fit at one time in the TSB of a given size, and either adds or
subtracts a percentage of entries.  This final value is the
RSS limit.

See tsb_size_to_rss_limit().

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/tsb.c
kernel/sysctl.c