[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libcdio-devel] Disabling Drive Cache for Paranoia

From: Jason Voegele
Subject: Re: [Libcdio-devel] Disabling Drive Cache for Paranoia
Date: Fri, 13 Apr 2007 17:46:40 -0400
User-agent: KMail/1.9.5

On Wednesday 21 June 2006 10:13, Peter Creath wrote:
> How big is your drive's cache?  There's a setting in the
> cdrom_paranoia_t that you pass to paranoia_read() that specifies how
> many sectors cdparanoia needs to read to exhaust your cache.
> Specifically, it's cdrom_paranoia_t.readahead.

So I am responding to a message that is nearly a year old, as I've now gotten 
to the point where I can actually make use of this information.

I have looked through the libcdio and cdparanoia sources, and I have found the 
cdrom_paranoia_t.readahead setting mentioned above.  Unfortunately, this 
setting is hard coded to the value 150, and is buried in an "opaque" 
structure so that it is not possible to set the value programatically from an 
external application.  In order to change this value from 150 to something 
more appropriate for a drive with a bigger cache, it is necessary to modify 
the source code, recompile, relink, etc. etc..

It would be of greate benefit to me to have this setting be exposed in some 
way so that I could set its value from my application.  What are your 
thoughts on this?  Is there a fundamental reason that the value is hard coded 
to 150?  Would exposing this value to applications be of benefit to anyone 

If I were to put together a patch that accomplishes this, would it be 
something that could be incorporated into libcdio's paranoia library?

Jason Voegele
The degree of technical confidence is inversely proportional to the
level of management.

Attachment: pgprdf1Pydk37.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]