Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* shmget failed
@ 2000-09-07 13:59 Isaiah Weiner
  2000-09-07 14:18 ` Kevin Wood
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Isaiah Weiner @ 2000-09-07 13:59 UTC (permalink / raw)
  To: axp-list

    I've got a Miata on which Linux doesn't seem to be using shared memory
segments . . . indicative of this is cdrecord's error:

cdrecord -scanbus properly detects the drive:

0,4,0     4) 'PLEXTOR ' 'CD-R   PX-W4220T' '1.01' Removable CD-ROM

cdrecord -v dev=0,4,0 ~/foo.iso results in:

Cdrecord 1.8 (alphaev56-unknown-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
TOC Type: 1 = CD-ROM
cdrecord: Invalid argument. shmget failed

    The kernel is 2.2.16.  Any thoughts?
-- 
    - Isaiah




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

* Re: shmget failed
  2000-09-07 13:59 shmget failed Isaiah Weiner
@ 2000-09-07 14:18 ` Kevin Wood
  2000-09-07 14:22 ` Hans J. Johnson
  2000-09-07 14:29 ` Matt Wilson
  2 siblings, 0 replies; 7+ messages in thread
From: Kevin Wood @ 2000-09-07 14:18 UTC (permalink / raw)
  To: axp-list

This should fix your problem!

W Bauske:

You can also reset shmmax thru the same interface.
Just "echo 8388608 > /proc/sys/kernel/shmmax" for
8MB as root.



Isaiah Weiner wrote:
> 
>     I've got a Miata on which Linux doesn't seem to be using shared memory
> segments . . . indicative of this is cdrecord's error:
> 
> cdrecord -scanbus properly detects the drive:
> 
> 0,4,0     4) 'PLEXTOR ' 'CD-R   PX-W4220T' '1.01' Removable CD-ROM
> 
> cdrecord -v dev=0,4,0 ~/foo.iso results in:
> 
> Cdrecord 1.8 (alphaev56-unknown-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
> TOC Type: 1 = CD-ROM
> cdrecord: Invalid argument. shmget failed
> 
>     The kernel is 2.2.16.  Any thoughts?
> --
>     - Isaiah
> 
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list

-- 
Kevin Wood
Atipa Linux Solutions
850 East Industrial Park Drive
Suite 8
Manchester, NH  03109
P(603)622-7171 x 15
F(603)622-7272




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

* Re: shmget failed
  2000-09-07 13:59 shmget failed Isaiah Weiner
  2000-09-07 14:18 ` Kevin Wood
@ 2000-09-07 14:22 ` Hans J. Johnson
  2000-09-07 15:35   ` Matt Wilson
  2000-09-07 16:51   ` Michal Jaegermann
  2000-09-07 14:29 ` Matt Wilson
  2 siblings, 2 replies; 7+ messages in thread
From: Hans J. Johnson @ 2000-09-07 14:22 UTC (permalink / raw)
  To: axp-list

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN, Size: 1028 bytes --]

For some reason the maximum shared memory is set too small.  A quick and
easy fix is as follows:

Enter the following command as root

#This is needed to increase the size of the shared memory
#Set by Hans J. Johnson  this fixes problem shmget() used by cdrecord 
echo 16777216 > /proc/sys/kernel/shmmax 


You can also put this in your /etc/rc.d/rc.local file so that you do not
have to change it every time you reboot.

Regards,
Hans J. Johnson
hans-johnson@uiowa.edu



On Thu, 7 Sep 2000, Isaiah Weiner wrote:


>     I've got a Miata on which Linux doesn't seem to be using shared memory
> segments . . . indicative of this is cdrecord's error:
> 
> cdrecord -scanbus properly detects the drive:
> 
> 0,4,0     4) 'PLEXTOR ' 'CD-R   PX-W4220T' '1.01' Removable CD-ROM
> 
> cdrecord -v dev=0,4,0 ~/foo.iso results in:
> 
> Cdrecord 1.8 (alphaev56-unknown-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
> TOC Type: 1 = CD-ROM
> cdrecord: Invalid argument. shmget failed
> 
>     The kernel is 2.2.16.  Any thoughts?
> 




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

* Re: shmget failed
  2000-09-07 13:59 shmget failed Isaiah Weiner
  2000-09-07 14:18 ` Kevin Wood
  2000-09-07 14:22 ` Hans J. Johnson
@ 2000-09-07 14:29 ` Matt Wilson
  2 siblings, 0 replies; 7+ messages in thread
From: Matt Wilson @ 2000-09-07 14:29 UTC (permalink / raw)
  To: axp-list

Oh!  It was on an alpha?  This makes perfect sense.  You didn't tell
me it was an alpha. :P

Harry Heinisch had a package that might work.

Matt

On Thu, Sep 07, 2000 at 09:59:26AM -0400, Isaiah Weiner wrote:
>     I've got a Miata on which Linux doesn't seem to be using shared memory
> segments . . . indicative of this is cdrecord's error:
> 
> cdrecord -scanbus properly detects the drive:
> 
> 0,4,0     4) 'PLEXTOR ' 'CD-R   PX-W4220T' '1.01' Removable CD-ROM
> 
> cdrecord -v dev=0,4,0 ~/foo.iso results in:
> 
> Cdrecord 1.8 (alphaev56-unknown-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
> TOC Type: 1 = CD-ROM
> cdrecord: Invalid argument. shmget failed
> 
>     The kernel is 2.2.16.  Any thoughts?
> -- 
>     - Isaiah
> 
> 
> 
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list




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

* Re: shmget failed
  2000-09-07 14:22 ` Hans J. Johnson
@ 2000-09-07 15:35   ` Matt Wilson
  2000-09-07 16:56     ` Isaiah Weiner
  2000-09-07 16:51   ` Michal Jaegermann
  1 sibling, 1 reply; 7+ messages in thread
From: Matt Wilson @ 2000-09-07 15:35 UTC (permalink / raw)
  To: axp-list

You should set kernel tunables via sysctl:

echo "kernel.shmmax = 16777216" >> /etc/sysctl.conf

then "sysctl -p" to load the settings.  They will persist after
reboot.

Cheers,

Matt

On Thu, Sep 07, 2000 at 09:22:52AM -0500, Hans J. Johnson wrote:
> For some reason the maximum shared memory is set too small.  A quick and
> easy fix is as follows:
> 
> Enter the following command as root
> 
> #This is needed to increase the size of the shared memory
> #Set by Hans J. Johnson  this fixes problem shmget() used by cdrecord 
> echo 16777216 > /proc/sys/kernel/shmmax 
> 
> 
> You can also put this in your /etc/rc.d/rc.local file so that you do not
> have to change it every time you reboot.
> 
> Regards,
> Hans J. Johnson
> hans-johnson@uiowa.edu
> 
> 
> 
> On Thu, 7 Sep 2000, Isaiah Weiner wrote:
> 
> 
> >     I've got a Miata on which Linux doesn't seem to be using shared memory
> > segments . . . indicative of this is cdrecord's error:
> > 
> > cdrecord -scanbus properly detects the drive:
> > 
> > 0,4,0     4) 'PLEXTOR ' 'CD-R   PX-W4220T' '1.01' Removable CD-ROM
> > 
> > cdrecord -v dev=0,4,0 ~/foo.iso results in:
> > 
> > Cdrecord 1.8 (alphaev56-unknown-linux-gnu) Copyright (C) 1995-2000 Jörg Schilling
> > TOC Type: 1 = CD-ROM
> > cdrecord: Invalid argument. shmget failed
> > 
> >     The kernel is 2.2.16.  Any thoughts?
> > 
> 
> 
> 
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list




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

* Re: shmget failed
  2000-09-07 14:22 ` Hans J. Johnson
  2000-09-07 15:35   ` Matt Wilson
@ 2000-09-07 16:51   ` Michal Jaegermann
  1 sibling, 0 replies; 7+ messages in thread
From: Michal Jaegermann @ 2000-09-07 16:51 UTC (permalink / raw)
  To: axp-list

Hans J. Johnson wrote:
> 
> For some reason the maximum shared memory is set too small.  A quick and
> easy fix is as follows:
> 
> Enter the following command as root
> 
> #This is needed to increase the size of the shared memory
> #Set by Hans J. Johnson  this fixes problem shmget() used by cdrecord 
> echo 16777216 > /proc/sys/kernel/shmmax 

As far as 'cdrecord' goes setting fifo size to 4000k, instead of a
default 4M, works just fine without messing with a size of a shared
memory segment.  The later is kind of inconvenient if you still run
some kernel from a 2.0 series.

Edit your '/etc/cdrecord.conf' to accomplish that feat, for example, but
there are other ways to do it.  'man cdrecord' will provide details.

  Michal




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

* Re: shmget failed
  2000-09-07 15:35   ` Matt Wilson
@ 2000-09-07 16:56     ` Isaiah Weiner
  0 siblings, 0 replies; 7+ messages in thread
From: Isaiah Weiner @ 2000-09-07 16:56 UTC (permalink / raw)
  To: axp-list

On Thu, Sep 07, 2000 at 11:35:29AM -0400, Matt Wilson wrote:
> You should set kernel tunables via sysctl:
> 
> echo "kernel.shmmax = 16777216" >> /etc/sysctl.conf
> 
> then "sysctl -p" to load the settings.  They will persist after
> reboot.

    Awesome, that works great. Thanks!

-- 
    - Isaiah




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

end of thread, other threads:[~2000-09-07 16:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-07 13:59 shmget failed Isaiah Weiner
2000-09-07 14:18 ` Kevin Wood
2000-09-07 14:22 ` Hans J. Johnson
2000-09-07 15:35   ` Matt Wilson
2000-09-07 16:56     ` Isaiah Weiner
2000-09-07 16:51   ` Michal Jaegermann
2000-09-07 14:29 ` Matt Wilson

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