public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Change default MSGMNI tunable to scale with system memory
@ 2007-12-11 15:38 Nadia.Derbey
  2007-12-11 15:38 ` [RFC PATCH 1/2] Scaling msgmni to the " Nadia.Derbey
  2007-12-11 15:38 ` [RFC PATCH 2/2] Scaling msgmni to the number of ipc namespaces Nadia.Derbey
  0 siblings, 2 replies; 5+ messages in thread
From: Nadia.Derbey @ 2007-12-11 15:38 UTC (permalink / raw)
  To: linux-kernel; +Cc: matthltc


On large systems we'd like to allow a larger number of message queues.
In some cases up to 32K. However simply setting MSGMNI to a larger value may
cause problems for smaller systems.

The first patch of this series introduces a default maximum number of message
queue ids that scales with the total amount of memory.

Since msgmni is per namespace and there is no amount of memory dedicated to
each namespace so far, the second patch of this series scales msgmni to
the number of ipc namespaces.

I still have 2 issues that I'll try to solve next:
  . use hotplug_memory_notifier() with a callback routine that would recompute
    msgmni each time memory is brought offline / online. The issue here is
    that I couldn't find a simple way to walk through all the nsproxy
    structures (without walking through the task structures).
  . add a new notification mechanism that would recompute all the msg_ctlmni
    tunables each time an ipc namespace is created / removed.
    

These patches should be applied to 2.6.24-rc4, in the following order:

[PATCH 1/2]: ipc_scale_msgmni_with_totalram.patch
[PATCH 2/2]: ipc_scale_msgmni_with_namespaces.patch

Note: a big thank to Matt Helsley who gave me a help!

Regards,
Nadia

--

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-12-19  2:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-11 15:38 [RFC PATCH 0/2] Change default MSGMNI tunable to scale with system memory Nadia.Derbey
2007-12-11 15:38 ` [RFC PATCH 1/2] Scaling msgmni to the " Nadia.Derbey
2007-12-19  0:06   ` Andrew Morton
2007-12-19  2:20     ` Matt Helsley
2007-12-11 15:38 ` [RFC PATCH 2/2] Scaling msgmni to the number of ipc namespaces Nadia.Derbey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox