Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cd-burning taking up 100%cpu
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Seoushi
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2003
Posts: 117
Location: Salt Lake City

PostPosted: Fri Feb 14, 2003 10:25 pm    Post subject: cd-burning taking up 100%cpu Reply with quote

everytime I burn a cd with simplecdrx it takes up 100% cpu. is this normal? Is there way to fix it or another program that doesn't have this problem?
_________________
-Seoushi
Back to top
View user's profile Send private message
drakonite
l33t
l33t


Joined: 02 Nov 2002
Posts: 768
Location: Lincoln, NE

PostPosted: Fri Feb 14, 2003 11:00 pm    Post subject: Reply with quote

Have you made sure to compile your kernel with the proper chipset support? Specifically if you have a via chipset?
_________________
Shoot Pixels Not People

My GPG/PGP Public key
Back to top
View user's profile Send private message
Seoushi
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2003
Posts: 117
Location: Salt Lake City

PostPosted: Sat Feb 15, 2003 2:35 am    Post subject: Reply with quote

Well I have the AMD761/VIA 686B and I didn't see anything special about those in the kernel config, then again it can always be hiding under a diffrent name. but my ide/ata support is fine from what I see.
_________________
-Seoushi
Back to top
View user's profile Send private message
drakonite
l33t
l33t


Joined: 02 Nov 2002
Posts: 768
Location: Lincoln, NE

PostPosted: Sat Feb 15, 2003 2:45 am    Post subject: Reply with quote

I am not sure what you need specifically for the AMD variety of via chipsets (I've heard they are different but I dunno for sure...)

The deal with via chipsets is that you need to enable via support in order to use busmastering.... I'm not sure how to explain busmastering, but basically, without it via chipsets use a TON of cpu power to access the drives, which is exactly the problem you are having.
_________________
Shoot Pixels Not People

My GPG/PGP Public key
Back to top
View user's profile Send private message
drakonite
l33t
l33t


Joined: 02 Nov 2002
Posts: 768
Location: Lincoln, NE

PostPosted: Sat Feb 15, 2003 2:46 am    Post subject: Reply with quote

I forgot to mention...
Without the via support your drives will still work. It just won't be able to do busmastering.

I'd try enablng via8xxxx support and see if it speeds things up.
_________________
Shoot Pixels Not People

My GPG/PGP Public key
Back to top
View user's profile Send private message
Zalator
n00b
n00b


Joined: 11 Aug 2002
Posts: 42

PostPosted: Sat Feb 15, 2003 3:07 pm    Post subject: Reply with quote

If nothing works you can force your drives to go DMA by echoing the correct settings into /proc/ide/blah/blah/settings for whichever drive you are using to burn. This will still work even if those drives are ide-scsi emulated.
Back to top
View user's profile Send private message
Oo.et.oO
Apprentice
Apprentice


Joined: 23 Apr 2002
Posts: 291
Location: burlington

PostPosted: Sun Feb 16, 2003 1:05 am    Post subject: same problem Reply with quote

i have the same problem and it does not appear to be a driver issue. at least not a DMA nor busmastering issue.

i've had 4 burners in 6 different linux systems starting back at 2.0.0 and they all had this issue. i never really looked into it.

but, DMA and busmastering is certainly enabled on all burn sessions and the disks and CDRW. it still bogs the hell out of the machine.
oh, and it doesn't matter if i use cdrecord or cdrdao, root or non. although root is slightly better due to bus mastering


:x
Back to top
View user's profile Send private message
line72
Apprentice
Apprentice


Joined: 13 Jun 2002
Posts: 212

PostPosted: Mon Feb 17, 2003 6:48 pm    Post subject: Reply with quote

I have the same problem ( i actually get spikes of 100% cpu usage, then none, then 100% etc) and my 24x burner only writes at about 12x. I have DMA on my harddrive (hda) and my cdrw(hdc). I dont' know how to check for busmastering, but I do remember including VIA support in the kernel:

line72 linux # grep -in via .config
69:# CONFIG_VIA_NORTHBRIDGE_FIXUP is not set
484:CONFIG_BLK_DEV_VIA82CXXX=y
668:CONFIG_VIA_RHINE=m
669:# CONFIG_VIA_RHINE_MMIO is not set
831:CONFIG_AGP_VIA=y

With the new cdrtools, I've been trying to burn as just ATAPI, not scsi-emulation, but I have the same problems. Here's the output of hdparm on my disk(hda) and my cdrw(hdc):

line72 linux # hdparm /dev/hda

/dev/hda:
multcount = 0 (off)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 9964/255/63, sectors = 160086528, start = 0
line72 linux # hdparm /dev/hdc

/dev/hdc:
HDIO_GET_MULTCOUNT failed: Invalid argument
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 1 (on)
readahead = 8 (on)
HDIO_GETGEO failed: Invalid argument

I would really like to be able to burn at full 24x and not have all cpu be in use

/Line72
Back to top
View user's profile Send private message
blscreen
Tux's lil' helper
Tux's lil' helper


Joined: 04 Mar 2003
Posts: 118
Location: Innsbruck

PostPosted: Sat Mar 08, 2003 4:59 pm    Post subject: Reply with quote

Quote:
i actually get spikes of 100% cpu usage, then none, then 100% etc


Same problem here, but only with audio-cds. data seems to work fine. I'm stuck...
Back to top
View user's profile Send private message
Robelix
l33t
l33t


Joined: 21 Jul 2002
Posts: 760
Location: in a World created by a Flying Spaghetti Monster

PostPosted: Sun Mar 09, 2003 8:43 pm    Post subject: Reply with quote

blscreen wrote:
Quote:
i actually get spikes of 100% cpu usage, then none, then 100% etc

Same problem here, but only with audio-cds. data seems to work fine. I'm stuck...


The problem is that current ide-drivers support dma only with 2^x byte blocks. Data CD's (Mode1) have 2048 B per block - fine, Audio and Mode2 CD's have 2352 B per block, so the kernel will fall back to PIO and this eats cpu.
There is a cdda-dma patch (included in the gentoo-sources) that fixes this, but it works only with ide-cd, not with ide-scsi.
_________________
mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec)
Back to top
View user's profile Send private message
line72
Apprentice
Apprentice


Joined: 13 Jun 2002
Posts: 212

PostPosted: Mon Mar 10, 2003 3:00 am    Post subject: Reply with quote

I'm using gentoo-sources-2.4.20 and i'm burning with ide not scsi-emulation but I still have these problems. I didn't see an option anywhere in the kernel config about cdda-dma.

/Line72
Back to top
View user's profile Send private message
Robelix
l33t
l33t


Joined: 21 Jul 2002
Posts: 760
Location: in a World created by a Flying Spaghetti Monster

PostPosted: Mon Mar 10, 2003 3:14 am    Post subject: Reply with quote

There is no kernel-option for cdda-dma. If the patch is applied it's activated, if not then not. And if something fails it falls back to PIO.

I have no experience with the new cdrecord ATAPI drivers (since my burner is native SCSI - Yamaha 4260 - 4x speed - sucks, but still works!) - the onyl thing I know is that readcd (from the cdrecord package) falls back to PIO - always.
_________________
mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec)
Back to top
View user's profile Send private message
blscreen
Tux's lil' helper
Tux's lil' helper


Joined: 04 Mar 2003
Posts: 118
Location: Innsbruck

PostPosted: Mon Mar 10, 2003 12:51 pm    Post subject: Reply with quote

Quote:
There is a cdda-dma patch (included in the gentoo-sources) that fixes this, but it works only with ide-cd, not with ide-scsi.


Thanks! I'll try that asap.
Back to top
View user's profile Send private message
blscreen
Tux's lil' helper
Tux's lil' helper


Joined: 04 Mar 2003
Posts: 118
Location: Innsbruck

PostPosted: Tue Mar 11, 2003 1:02 pm    Post subject: Reply with quote

I didn't see anything like cdda-dma in the current gentoo-sources description. And using this kernel doesn't improve the situation for me. But it does work with the current development kernel 2.5.64 . Finally I can burn audio cds at 16x with cpu usage < 5%.

But here's another problem: 2.5.64 claims to do dma ripping of audio cds but I didn't notice this so far, cpu is still at something around 80%. This however works with the current 2.4.20 kernel and the ide-akpm patch. So by now I have to choose between fast audio burning and fast audio ripping at boot-time :?
Anyone knows what could be the problem with 2.5?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum