public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.4.3-ac2 -- How do I determine if shm is being used?
@ 2001-04-07 18:28 Miles Lane
  2001-04-08 12:31 ` Christoph Rohland
  0 siblings, 1 reply; 2+ messages in thread
From: Miles Lane @ 2001-04-07 18:28 UTC (permalink / raw)
  To: LKML

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

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

* Re: 2.4.3-ac2 -- How do I determine if shm is being used?
  2001-04-07 18:28 2.4.3-ac2 -- How do I determine if shm is being used? Miles Lane
@ 2001-04-08 12:31 ` Christoph Rohland
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Rohland @ 2001-04-08 12:31 UTC (permalink / raw)
  To: Miles Lane; +Cc: LKML

Hi Miles,

On Sat, 07 Apr 2001, Miles Lane wrote:
> I have mounted:
> 
> 	none on /var/shm type shm (rw)

Not necessary any more.

> 	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.

> 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.

> 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



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

end of thread, other threads:[~2001-04-08 11:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-07 18:28 2.4.3-ac2 -- How do I determine if shm is being used? Miles Lane
2001-04-08 12:31 ` Christoph Rohland

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