Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Weird untar problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
edtate
n00b
n00b


Joined: 27 Aug 2003
Posts: 30

PostPosted: Tue Aug 10, 2004 10:03 am    Post subject: [SOLVED] Weird untar problem Reply with quote

Hey people,
I have development kernel 2.6, and everytime i untar an archive it lags up my computer completely(the mouse starts stuttering and the sound stops), like everytime i emerge, when it unpacks the archive. Has anyone else experienced this? Is there a way to fix it, or is this meant to happen :/?


Last edited by edtate on Thu Aug 12, 2004 1:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Tue Aug 10, 2004 10:21 am    Post subject: Reply with quote

have you enabled DMA?
Back to top
View user's profile Send private message
edtate
n00b
n00b


Joined: 27 Aug 2003
Posts: 30

PostPosted: Tue Aug 10, 2004 11:57 am    Post subject: Reply with quote

DMA... a lil more specific?
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Tue Aug 10, 2004 12:30 pm    Post subject: Reply with quote

Code:
# hdparm /dev/hda | grep using_dma
Back to top
View user's profile Send private message
edtate
n00b
n00b


Joined: 27 Aug 2003
Posts: 30

PostPosted: Tue Aug 10, 2004 12:45 pm    Post subject: Reply with quote

It says :
using_dma = 0 (off)
is this what i'm supposed to enable? What is DMA and why is it causing me this problem? (sorry am v curious)
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Tue Aug 10, 2004 1:10 pm    Post subject: Reply with quote

i don't know exactly what's DMA, but i know if you enable it your hard disks will un 10 times faster...
try running:
Code:
# hdparm -tT /dev/hda

and post the output...
Back to top
View user's profile Send private message
edtate
n00b
n00b


Joined: 27 Aug 2003
Posts: 30

PostPosted: Tue Aug 10, 2004 5:53 pm    Post subject: Reply with quote

root@kyro malune # hdparm -tT /dev/hdb

/dev/hdb:
Timing buffer-cache reads: 888 MB in 2.01 seconds = 442.74 MB/sec
Timing buffered disk reads: 22 MB in 3.07 seconds = 7.17 MB/sec
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Tue Aug 10, 2004 7:01 pm    Post subject: Reply with quote

7 mb/s is too slow... my hd can do 40mb/s and is 2 years old.
you have to activate DMA. do this:
Code:
hdparm -d 1 /dev/hdb

then try to untar. if the problem is still there, i really don't know...
anyway, when you have to reboot, after having rebooted try to test your hd again, in order to see if it "remembers" to keep dma enabled... if it doesn't, tell me...
Back to top
View user's profile Send private message
edtate
n00b
n00b


Joined: 27 Aug 2003
Posts: 30

PostPosted: Wed Aug 11, 2004 1:20 pm    Post subject: Reply with quote

Now it gives me this error :

Quote:

root@kyro malune # hdparm -d 1 /dev/hdb

/dev/hdb:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)


And i was logged in as root... Maybe I have to enable something in my kernel?
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Wed Aug 11, 2004 5:34 pm    Post subject: Reply with quote

yes... i had this problem too. probably you have to enable the support for your chipset...

go in device drivers:
Y generic pci bus master dma support
Y use pci dma by default when available
Y <your chipset>

my chipset, for example, is via82cxxx... you have to find yours.

hope it helps...
Back to top
View user's profile Send private message
edtate
n00b
n00b


Joined: 27 Aug 2003
Posts: 30

PostPosted: Wed Aug 11, 2004 9:04 pm    Post subject: Reply with quote

hey, i've enabled support for my chipset in the kernel, and all the features you told me to enable, but it still won't let me enable dma, i still get the same error. Any suggestions???
Back to top
View user's profile Send private message
Steven Robertson
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2003
Posts: 140
Location: Tampa, FL

PostPosted: Wed Aug 11, 2004 9:30 pm    Post subject: Reply with quote

Stop me if you've heard all this before.

What kind of cable connects your HD to your motherboard? If it's an old 40-conductor, 40-pin cable, you can't use DMA. Any newer 80-conductor, 40-pin cable should work fine.

Look inside your case, and identify both the cable that runs to your floppy drive and the cable that runs to your hard drive. Compare the thickness of each conductor (each individual bump in the ribbon part is one conductor). If they are approximately the same, it's an old 40-conductor cable. If the hard drive's are significantly smaller, but greater in number, it's probably an 80-conductor.

If you have a 40-conductor, run down to any common tech store that carries computer parts. Radioshack or CompUSA should do fine. Pick up a cable that is described as either an IDE, EIDE, or ATAPI interface cable, which has three connectors, and says '80-conductor'. It can be either 40 or 39 pin. Rounded or ribbon type are both acceptable, although IMO rounded are better from an asthetic and practical view (makes no difference on performance).

If you're already using an 80-conductor, check two things. Is there a hard drive on the end of the IDE cable you're using now, or is there exactly one hard drive set to be master of that cable (set using the jumpers on the back)? If not, make either condition (or both) true. If that's not it, I'd check in the BIOS to make sure that there's not some weird error.

The last possibility, if it's a really old drive, is that the drive doesn't support DMA. This is the least likely, but it's possible.

HTH.
Back to top
View user's profile Send private message
edtate
n00b
n00b


Joined: 27 Aug 2003
Posts: 30

PostPosted: Wed Aug 11, 2004 9:57 pm    Post subject: Reply with quote

It's definitely an 80-conductor 40-pin cable. There is a hard drive connected to the end of the IDE cable, i built the computer myself though and i think it's set as slave(it was hdb instead of hda whilst setting up gentoo), and i don't think there is a master for that cable, because i never messed about with the jumpers. Is there any kind of guide to mess about with that? And what am i trying to achieve, to set the hard drive as master?
Back to top
View user's profile Send private message
Rafje
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2004
Posts: 109
Location: .be

PostPosted: Wed Aug 11, 2004 9:59 pm    Post subject: Reply with quote

edtate wrote:
hey, i've enabled support for my chipset in the kernel, and all the features you told me to enable, but it still won't let me enable dma, i still get the same error. Any suggestions???


Just checking the obvious, don't feel insulted... After configuring the kernel, you did recompile it, install it in /boot and rebooted, right?
Back to top
View user's profile Send private message
edtate
n00b
n00b


Joined: 27 Aug 2003
Posts: 30

PostPosted: Thu Aug 12, 2004 12:38 am    Post subject: Reply with quote

yeah, i checked that about 5 times, it starts up the correct chipset driver when booting the kernel, when it starts up it says HPT37xx.. something something, so it is enabled.
Back to top
View user's profile Send private message
iamben
Apprentice
Apprentice


Joined: 10 May 2004
Posts: 278

PostPosted: Thu Aug 12, 2004 1:05 am    Post subject: Reply with quote

try changing the drive to master, some ide controllers have trouble with funny master/slave setups, even when the drives show up. the drive may show up, but its really not proper to have a slave w/o a master on an ide channel.

just look on the hard drive itself, you should find a table showing jumper settings for master/slave/single/CS/whatever

if you cant handle that try just putting the drive on the end of the cable and setting the jumper to CS (cable select), that should work too.
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Thu Aug 12, 2004 7:58 am    Post subject: Reply with quote

edtate wrote:
yeah, i checked that about 5 times, it starts up the correct chipset driver when booting the kernel, when it starts up it says HPT37xx.. something something, so it is enabled.

are you sure you have selected the right chipset? why don't you let us know your motherboard's model?
Back to top
View user's profile Send private message
edtate
n00b
n00b


Joined: 27 Aug 2003
Posts: 30

PostPosted: Thu Aug 12, 2004 8:50 am    Post subject: Reply with quote

Ok, my motherboard is an ABIT AT7-MAX2, here is what the manual says about it :

Quote:

2. Chipset (VIA KT 400 and VT8235)
Supports Ultra DMA 33, Ultra DMA 66, Ultra DMA 100 and Ultra DMA 133 IDE protocol
5. Ultra DMA 133/RAID
HighPoint HPT 374 IDE controller (this is where i assumed HPT37xxx chipset)
Supports Ultra DMA 133MB/sec data transfer rate
(the rest is irrelevant)


Also, i haven't yet set the hard drive to master because i'm worried i might fuck everything up, is there a chance of this? Like for example my drives are configured as hdb, so surely if i put it on master it might make things awry because of the fact the drive would be at hda?
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Thu Aug 12, 2004 9:15 am    Post subject: Reply with quote

Southbridge VT8235
i think you have to enable this chipset instead of the other...
Back to top
View user's profile Send private message
John5788
Advocate
Advocate


Joined: 06 Apr 2004
Posts: 2140
Location: 127.0.0.1

PostPosted: Thu Aug 12, 2004 10:15 am    Post subject: Reply with quote

its the VIA one. someone mentioned it above, use it
via82cxxx
_________________
John5788
Back to top
View user's profile Send private message
edtate
n00b
n00b


Joined: 27 Aug 2003
Posts: 30

PostPosted: Thu Aug 12, 2004 12:18 pm    Post subject: Reply with quote

...and the problem is fixed, it was the via82xxx chipset that i was supposed to enable in my kernel, all tar archives are now extracting fine, without lag!!! Thanks to all of you for your help, and fctk in particular for your time!
Back to top
View user's profile Send private message
fctk
Veteran
Veteran


Joined: 28 Jan 2004
Posts: 1424
Location: Milan, Italy, EU

PostPosted: Thu Aug 12, 2004 1:43 pm    Post subject: Reply with quote

i'm glad you solved the problem...
anyway pls put [SOLVED] to the title...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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