Skip to contentSkip to conversation

shm problems ?

DISCUSSION Wesley Hosking 2 participants 3 messages Sep 25, 1998 – Sep 28, 1998

lore
Share & tools
lore
#0 lore raw

I am VGER 2.1.121 with shm enabled, on an Ultra 30.

When I use xcdroast to burn a CD it gives me :
/usr/lib/xcdroast-0.96d/bin/cdrecord-1.6: Invalid argument. shmget failed Cdrecord release 1.6 Copyright (C) 1995-1998 Jörg Schilling

(I also get the same in sparc32 mode :

/usr/lib/xcdroast-0.96d/bin/cdrecord-1.6: Invalid argument. shmget failed Cdrecord release 1.6 Copyright (C) 1995-1998 Jörg Schilling

.....

ok - its probably the
#define SHMMAX (1024 * 1024)
in include/asm-sparc64/shmparam.h

cdrecord requires a 4M chunk...
will try it at 16Mb, and see if that is the problem.

If you don't hear from me there thats probably what the fix is ;-)

wes

#2 lore raw
In reply to Wesley Hosking
Quoted 5 lines · David S. Miller

Upgrade to and install latest CVS kernel.

ftp://vger.rutgers.edu/pub/linux/README.CVS

It turned out I had to do both....
Jakub put a fix into the CVS archive for sg.o
(the generic scsi device)

AND it required the stuff below (I changed the 1024's for SHMMAX to 4096)...

(cdrecord requires a 4Mbyte chunk to ensure the SCSI flow is kept full to the CD - I just made it 4 * larger to make sure ;-)

It works fine ! (now).

wes

Quoted 24 lines · In response to Wesley Hosking

I am VGER 2.1.121 with shm enabled, on an Ultra 30.

When I use xcdroast to burn a CD it gives me :
/usr/lib/xcdroast-0.96d/bin/cdrecord-1.6: Invalid argument. shmget failed Cdrecord release 1.6 Copyright (C) 1995-1998 Jörg Schilling

(I also get the same in sparc32 mode :

/usr/lib/xcdroast-0.96d/bin/cdrecord-1.6: Invalid argument. shmget failed Cdrecord release 1.6 Copyright (C) 1995-1998 Jörg Schilling

.....

ok - its probably the
#define SHMMAX (1024 * 1024)
in include/asm-sparc64/shmparam.h

cdrecord requires a 4M chunk...
will try it at 16Mb, and see if that is the problem.

If you don't hear from me there thats probably what the fix is ;-)

wes