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

Re: How to make apps play nice?



Thanks for all the replies. Torben, I think my network card is fine.
The problem is the same with using either ethernet or wireless for
internet.


Sorry for my ignorance... what IS dma anyway? It seems this is the
problem. Here is the output from hdparm:

$ hdparm /dev/hda

/dev/hda:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 65535/16/63, sectors = 240121728, start = 0

$ hdparm /dev/sda

/dev/sda:
 IO_support   =  0 (default 16-bit)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 24321/255/63, sectors = 390721968, start = 0

$ hdparm /dev/sdb

/dev/sdb:
 IO_support   =  0 (default 16-bit)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 30515/255/63, sectors = 490234752, start = 0

(NOTE- sda and sdb are joined up via LVM2 into one big volume)
So what does all of this mean? Seems that dma is not activated for
/dev/hda. Does the above mean that is IS active for /dev/sda and
/dev/sdb?

the -tT flag gives this:

$ hdparm -tT /dev/hda

/dev/hda:
 Timing cached reads:   2652 MB in  2.00 seconds = 1325.92 MB/sec
 Timing buffered disk reads:   12 MB in  3.14 seconds =   3.82 MB/sec

$ hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   2732 MB in  2.00 seconds = 1365.91 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate
ioctl for device
 Timing buffered disk reads:  160 MB in  3.03 seconds =  52.84 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate
ioctl for device

$ hdparm -tT /dev/sdb

/dev/sdb:
 Timing cached reads:   2720 MB in  2.00 seconds = 1359.92 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate
ioctl for device
 Timing buffered disk reads:  172 MB in  3.03 seconds =  56.80 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate
ioctl for device


Meanwhile the -d activating option fails:

$ hdparm -d1 /dev/hda

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


Any advice concerning this? How does one get dma activated?
(Thanks again.)

Craig



Reply to: