Skip to contentSkip to conversation

2.4.3-ac2 -- How do I determine if shm is being used?

DISCUSSION Miles Lane 2 participants 2 messages Apr 7, 2001 – Apr 8, 2001

lore
Share & tools
lore

Miles Lane

author
#0 lore raw

I have mounted:

none on /var/shm type shm (rw)
tmpfs on /dev/shm type tmpfs (rw)

Yet, running "x11perf -shmput10" gives me:

X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 146 (MIT-SHM)
Minor opcode of failed request: 3 (X_ShmPutImage)
Value in failed request: 0x1600001
Serial number of failed request: 35107
Current serial number in output stream: 35111

I'd like to check to make sure that shm is actually accessible to my programs. Is there any easy way to do this?

I have already checked the values of:

	/proc/sys/kernel/shmall = 2000000
	/proc/sys/kernel/shmmax = 4096
	/proc/sys/kernel/shmmni = 35000000

Thanks,
Miles

#1 lore raw

Hi Miles,

Quoted 3 lines · Miles Lane

I have mounted:

none on /var/shm type shm (rw)

Not necessary any more.

Quoted 1 line

tmpfs on /dev/shm type tmpfs (rw)

Also not necessary, but recommended for POSIX shm. BTW it will not work with Linus' kernel. Type "shm" is supported by both versions.

Quoted 7 lines

X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 146 (MIT-SHM)
Minor opcode of failed request: 3 (X_ShmPutImage) Value in failed request: 0x1600001
Serial number of failed request: 35107
Current serial number in output stream: 35111

Ubfortunately this does not tell what it wanted to do.

Quoted 2 lines

I'd like to check to make sure that shm is actually accessible to my programs. Is there any easy way to do this?

ipcs should be your friend. Especially 'ipcs -lm'.

Greetings
Christoph