From owner-freebsd-questions Fri Feb 1 14:15:37 2002 Delivered-To: freebsd-questions@freebsd.org Received: from web20006.mail.yahoo.com (web20006.mail.yahoo.com [216.136.225.69]) by hub.freebsd.org (Postfix) with SMTP id 9447A37B404 for ; Fri, 1 Feb 2002 14:15:30 -0800 (PST) Message-ID: <20020201221529.50006.qmail@web20006.mail.yahoo.com> Received: from [24.199.88.190] by web20006.mail.yahoo.com via HTTP; Fri, 01 Feb 2002 14:15:29 PST Date: Fri, 1 Feb 2002 14:15:29 -0800 (PST) From: Zachary Giardalas Subject: Re: cdrdao cannot allocate memory error To: Fernan Aguero , FreeBSD Questions Cc: cdwrite@other.debian.org In-Reply-To: <20020201164017.A5156@iib.unsam.edu.ar> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I may be way off-base on this but, at least on Linux, I think I recall that allocating shared memory required root priveledges. Try logging in as root and running it, just as a test. --- Fernan Aguero wrote: > [please CC me since I'm not subscribed to the list] > [Note: cross-posting to cdwrite and > freebsd-questions lists] > > Hi all, > > I am using cdrdao to read and write CDs from/to my > SCSI CD-R. > > As suggested in pkg-descr and pkg-message (FreeBSD > ports system) I > have set the following in my kernel configuration > file: > > options SYSVSHM #SYSV-style shared memory > options SYSVMSG #SYSV-style message queues > options SYSVSEM #SYSV-style semaphores > > > options P1003_1B #Posix P1003_1B real-time > extensions > options _KPOSIX_PRIORITY_SCHEDULING > options _KPOSIX_VERSION=199309L > > However, I always see errors like the following: > ERROR: Cannot create shared memory segment: Cannot > allocate memory > ERROR: Try to reduce the buffer count (option > --buffers). > > According to cdrdao(1), the default number of > buffers for FreeBSD is > 20 (1 buffer == 1 second of audio data). > Sometimes I can get cdrdao to work with --buffers > 16, but now I'm also > getting errors with this number of buffers. > If I go lower (say --buffers 10, which is the > minimum) I get buffer > underruns. > > Single-user machine > Pentium III 600 MHz, 768 MB RAM > FreeBSD-4.3 (RELENG_4_3) > I have X running but no KDE or Gnome ... just plain > icewm. > Errors occur even with low system usage (just X and > one or two > Eterms). > > Questions: > i) why is cdrdao not able to get the memory it > needs? There > should be plenty of it most of the time. > ii) Is there anything I can do to fix this? > Change my kernel config and recompile? > Play with sysctl? > > Thanks in advance for any help, > > Fernan > > PS: I'm using cdrdao basically because it's the only > way to get > cdparanoia-style ripping in FreeBSD. All other > rippers are not just > paranoid enough (even with discs that appear OK > there are problems). > > PS2: cdparanoia builds on FreeBSD but is not able to > open the CD-ROM > (ATAPI in my case) or the CD-R (SCSI) for reading. > > > -- > To UNSUBSCRIBE, email to > cdwrite-request@other.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmaster@other.debian.org > __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message