#1 Burning Software

It is currently Thu Dec 19, 2024 8:11 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: No speed gain by ripping from multiple drives?
PostPosted: Fri Oct 13, 2006 3:18 pm 
Offline

Joined: Thu Jun 22, 2006 8:20 pm
Posts: 35
Hello all,

I have written a commercial application for ripping CDs to disk from multiple CD-ROMs simultaneously. The first version used the AK-RIP library and worked brilliantly. For compatibility reasons I needed to convert from AK-RIP to StarBurn. My problem is this: It seems that StarBurn slows down when ripping from multiple drives. In other words, if I rip from one drive, I can rip perhaps 10 discs an hour. If I rip from two drives, I used to get almost double the throughput, or 20 discs an hour, but with StarBurn I still only get 10 discs an hour. Just to make myself clear, it seems that StarBurn is only capable of ripping a certain amount of data per second, no matter how many drives it rips from. Is there something I can do about this? Am I using it incorrectly? Solving this loss of speed is critical for the success of my application!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 13, 2006 10:06 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
There could be quite a lot of reasons why it happens. Improper design, too much memory allocated, no async I/O etc etc etc. Tell us more about how your app is written and we'll try to help you to sort the bottleneck out.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 14, 2006 9:49 am 
Offline

Joined: Thu Jun 22, 2006 8:20 pm
Posts: 35
Well, I'm not sure what kind of information you're looking for but here goes...

The app is a fairly standard multi-threaded MFC dialog based app written in C++. Each drive is ripped from in it's own thread. I call StarBurn_CdvdBurnerGrabber_Create() to access the drives, and request a 64MB buffer for each of them. Each thread runs at the same priority level and the apps process level is raised to "real-time". I'm not sure which I/O you're referring to with the async question, HD, CD-ROM? And what is considered proper design?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 14, 2006 3:41 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
1) Initialize device with 1 (ONE) megabyte of cache (0 allocated default). You don't need ANY memory for grabbing. So in your case you're just wasting the resources.

2) Use CreateEx instead of Create. This would make StarBurn to use native SCSI Pass Thru Interface instead of ASPI wrapper.

3) Apply 1) and 2) and let us know did it help or not.

novalis wrote:
Well, I'm not sure what kind of information you're looking for but here goes...

The app is a fairly standard multi-threaded MFC dialog based app written in C++. Each drive is ripped from in it's own thread. I call StarBurn_CdvdBurnerGrabber_Create() to access the drives, and request a 64MB buffer for each of them. Each thread runs at the same priority level and the apps process level is raised to "real-time". I'm not sure which I/O you're referring to with the async question, HD, CD-ROM? And what is considered proper design?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 16, 2006 4:51 pm 
Offline

Joined: Thu Jun 22, 2006 8:20 pm
Posts: 35
Brilliant! Everything works perfectly now, thanks for your help!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 16, 2006 6:31 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Nice to know we've been helpful :)

novalis wrote:
Brilliant! Everything works perfectly now, thanks for your help!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group