public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Restore MSGPOOL original value
       [not found] <20080526091716.087875000@bull.net>
@ 2008-05-26  9:17 ` Nadia.Derbey
  2008-05-26 10:38   ` Michael Kerrisk
  2008-05-28 22:48   ` Andrew Morton
  0 siblings, 2 replies; 4+ messages in thread
From: Nadia.Derbey @ 2008-05-26  9:17 UTC (permalink / raw)
  To: akpm; +Cc: mtk.manpages, linux-kernel, Nadia Derbey

[-- Attachment #1: restore_msgpool_original_value.patch --]
[-- Type: text/plain, Size: 1602 bytes --]

Hi,

When posting:
[PATCH 1/8] Scaling msgmni to the amount of lowmem
(see http://article.gmane.org/gmane.linux.kernel/637849/), I have changed the
MSGPOOL value to make it fit what is said in the man pages (i.e. a size in
bytes).

But Michael Kerrisk rightly complained that this change could affect the ABI.
So I'm posting this patch to make MSGPOOL expressed back in Kbytes.
Michael, on his side, has fixed the man page.

This patch applies to 2.6.26-rc2-mm1.

Signed-off-by: Nadia Derbey <Nadia.Derbey@bull.net>

---
 include/linux/msg.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6.26-rc2-mm1/include/linux/msg.h
===================================================================
--- linux-2.6.26-rc2-mm1.orig/include/linux/msg.h	2008-05-26 11:06:53.000000000 +0200
+++ linux-2.6.26-rc2-mm1/include/linux/msg.h	2008-05-26 11:18:34.000000000 +0200
@@ -64,11 +64,11 @@ struct msginfo {
 #define MSGMNB 16384   /* <= INT_MAX */   /* default max size of a message queue */
 
 /* unused */
-#define MSGPOOL (MSGMNI * MSGMNB) /* size in bytes of message pool */
+#define MSGPOOL (MSGMNI * MSGMNB / 1024) /* size in kbytes of message pool */
 #define MSGTQL  MSGMNB            /* number of system message headers */
 #define MSGMAP  MSGMNB            /* number of entries in message map */
 #define MSGSSZ  16                /* message segment size */
-#define __MSGSEG (MSGPOOL / MSGSSZ) /* max no. of segments */
+#define __MSGSEG ((MSGPOOL * 1024) / MSGSSZ) /* max no. of segments */
 #define MSGSEG (__MSGSEG <= 0xffff ? __MSGSEG : 0xffff)
 
 #ifdef __KERNEL__

--

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

* Re: [PATCH] Restore MSGPOOL original value
  2008-05-26  9:17 ` [PATCH] Restore MSGPOOL original value Nadia.Derbey
@ 2008-05-26 10:38   ` Michael Kerrisk
  2008-05-28 22:48   ` Andrew Morton
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Kerrisk @ 2008-05-26 10:38 UTC (permalink / raw)
  To: Nadia.Derbey; +Cc: akpm, linux-kernel

On Mon, May 26, 2008 at 11:17 AM,  <Nadia.Derbey@bull.net> wrote:
> Hi,
>
> When posting:
> [PATCH 1/8] Scaling msgmni to the amount of lowmem
> (see http://article.gmane.org/gmane.linux.kernel/637849/), I have changed the
> MSGPOOL value to make it fit what is said in the man pages (i.e. a size in
> bytes).
>
> But Michael Kerrisk rightly complained that this change could affect the ABI.
> So I'm posting this patch to make MSGPOOL expressed back in Kbytes.
> Michael, on his side, has fixed the man page.
>
> This patch applies to 2.6.26-rc2-mm1.
>
> Signed-off-by: Nadia Derbey <Nadia.Derbey@bull.net>
>
> ---
>  include/linux/msg.h |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> Index: linux-2.6.26-rc2-mm1/include/linux/msg.h
> ===================================================================
> --- linux-2.6.26-rc2-mm1.orig/include/linux/msg.h       2008-05-26 11:06:53.000000000 +0200
> +++ linux-2.6.26-rc2-mm1/include/linux/msg.h    2008-05-26 11:18:34.000000000 +0200
> @@ -64,11 +64,11 @@ struct msginfo {
>  #define MSGMNB 16384   /* <= INT_MAX */   /* default max size of a message queue */
>
>  /* unused */
> -#define MSGPOOL (MSGMNI * MSGMNB) /* size in bytes of message pool */
> +#define MSGPOOL (MSGMNI * MSGMNB / 1024) /* size in kbytes of message pool */
>  #define MSGTQL  MSGMNB            /* number of system message headers */
>  #define MSGMAP  MSGMNB            /* number of entries in message map */
>  #define MSGSSZ  16                /* message segment size */
> -#define __MSGSEG (MSGPOOL / MSGSSZ) /* max no. of segments */
> +#define __MSGSEG ((MSGPOOL * 1024) / MSGSSZ) /* max no. of segments */
>  #define MSGSEG (__MSGSEG <= 0xffff ? __MSGSEG : 0xffff)
>
>  #ifdef __KERNEL__

Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html

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

* Re: [PATCH] Restore MSGPOOL original value
  2008-05-26  9:17 ` [PATCH] Restore MSGPOOL original value Nadia.Derbey
  2008-05-26 10:38   ` Michael Kerrisk
@ 2008-05-28 22:48   ` Andrew Morton
  2008-05-29 10:01     ` Nadia Derbey
  1 sibling, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2008-05-28 22:48 UTC (permalink / raw)
  To: Nadia.Derbey; +Cc: mtk.manpages, linux-kernel, Nadia.Derbey

On Mon, 26 May 2008 11:17:17 +0200
Nadia.Derbey@bull.net wrote:

> Subject: [PATCH] Restore MSGPOOL original value

Please prefer to include the subsystem identifier in the patch title.  ie:

	[patch] ipc: restore MSGPOOL original value

It saves me from having to do it ;)

> Date: Mon, 26 May 2008 11:17:17 +0200
> User-Agent: quilt/0.45-1
> 
> Hi,
> 
> When posting:
> [PATCH 1/8] Scaling msgmni to the amount of lowmem
> (see http://article.gmane.org/gmane.linux.kernel/637849/), I have changed the
> MSGPOOL value to make it fit what is said in the man pages (i.e. a size in
> bytes).
> 
> But Michael Kerrisk rightly complained that this change could affect the ABI.
> So I'm posting this patch to make MSGPOOL expressed back in Kbytes.
> Michael, on his side, has fixed the man page.
> 
> This patch applies to 2.6.26-rc2-mm1.

But it is needed in 2.6.26, yes?



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

* Re: [PATCH] Restore MSGPOOL original value
  2008-05-28 22:48   ` Andrew Morton
@ 2008-05-29 10:01     ` Nadia Derbey
  0 siblings, 0 replies; 4+ messages in thread
From: Nadia Derbey @ 2008-05-29 10:01 UTC (permalink / raw)
  To: Andrew Morton; +Cc: mtk.manpages, linux-kernel

Andrew Morton wrote:
> On Mon, 26 May 2008 11:17:17 +0200
> Nadia.Derbey@bull.net wrote:
> 
> 
>>Subject: [PATCH] Restore MSGPOOL original value
> 
> 
> Please prefer to include the subsystem identifier in the patch title.  ie:
> 
> 	[patch] ipc: restore MSGPOOL original value
> 
> It saves me from having to do it ;)

Sorry for that.

> 
> 
>>Date: Mon, 26 May 2008 11:17:17 +0200
>>User-Agent: quilt/0.45-1
>>
>>Hi,
>>
>>When posting:
>>[PATCH 1/8] Scaling msgmni to the amount of lowmem
>>(see http://article.gmane.org/gmane.linux.kernel/637849/), I have changed the
>>MSGPOOL value to make it fit what is said in the man pages (i.e. a size in
>>bytes).
>>
>>But Michael Kerrisk rightly complained that this change could affect the ABI.
>>So I'm posting this patch to make MSGPOOL expressed back in Kbytes.
>>Michael, on his side, has fixed the man page.
>>
>>This patch applies to 2.6.26-rc2-mm1.
> 
> 
> But it is needed in 2.6.26, yes?
> 

Yes.

Regards,
Nadia

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

end of thread, other threads:[~2008-05-29 10:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20080526091716.087875000@bull.net>
2008-05-26  9:17 ` [PATCH] Restore MSGPOOL original value Nadia.Derbey
2008-05-26 10:38   ` Michael Kerrisk
2008-05-28 22:48   ` Andrew Morton
2008-05-29 10:01     ` Nadia Derbey

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