]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | From: Chris Mason <mason@suse.com> |
2 | Subject: increase defaults for shmmall, shmmax, msgmax and msgmnb | |
3 | References: 146656 | |
4 | ||
5 | The defaults are too small for most users. | |
6 | ||
7 | Acked-by: Jeff Mahoney <jeffm@suse.com> | |
8 | ||
9 | --- | |
10 | include/linux/msg.h | 4 ++-- | |
11 | include/linux/sem.h | 2 +- | |
12 | include/linux/shm.h | 2 +- | |
13 | 3 files changed, 4 insertions(+), 4 deletions(-) | |
14 | ||
15 | --- a/include/linux/msg.h | |
16 | +++ b/include/linux/msg.h | |
17 | @@ -60,8 +60,8 @@ struct msginfo { | |
18 | #define MSG_MEM_SCALE 32 | |
19 | ||
20 | #define MSGMNI 16 /* <= IPCMNI */ /* max # of msg queue identifiers */ | |
21 | -#define MSGMAX 8192 /* <= INT_MAX */ /* max size of message (bytes) */ | |
22 | -#define MSGMNB 16384 /* <= INT_MAX */ /* default max size of a message queue */ | |
23 | +#define MSGMAX 65536 /* <= INT_MAX */ /* max size of message (bytes) */ | |
24 | +#define MSGMNB 65536 /* <= INT_MAX */ /* default max size of a message queue */ | |
25 | ||
26 | /* unused */ | |
27 | #define MSGPOOL (MSGMNI * MSGMNB / 1024) /* size in kbytes of message pool */ | |
28 | --- a/include/linux/sem.h | |
29 | +++ b/include/linux/sem.h | |
30 | @@ -63,7 +63,7 @@ struct seminfo { | |
31 | int semaem; | |
32 | }; | |
33 | ||
34 | -#define SEMMNI 128 /* <= IPCMNI max # of semaphore identifiers */ | |
35 | +#define SEMMNI 1024 /* <= IPCMNI max # of semaphore identifiers */ | |
36 | #define SEMMSL 250 /* <= 8 000 max num of semaphores per id */ | |
37 | #define SEMMNS (SEMMNI*SEMMSL) /* <= INT_MAX max # of semaphores in system */ | |
38 | #define SEMOPM 32 /* <= 1 000 max num of ops per semop call */ | |
39 | --- a/include/linux/shm.h | |
40 | +++ b/include/linux/shm.h | |
41 | @@ -14,7 +14,7 @@ | |
42 | * be increased by sysctl | |
43 | */ | |
44 | ||
45 | -#define SHMMAX 0x2000000 /* max shared seg size (bytes) */ | |
46 | +#define SHMMAX ULONG_MAX /* max shared seg size (bytes) */ | |
47 | #define SHMMIN 1 /* min shared seg size (bytes) */ | |
48 | #define SHMMNI 4096 /* max num of segs system wide */ | |
49 | #ifdef __KERNEL__ |