LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Re: prioritize PCI traffic ?
[not found] <fa.IZ3qyPHQu5qQWnA4jBWoHC54zJE@ifi.uio.no>
@ 2007-01-15 14:24 ` Robert Hancock
0 siblings, 0 replies; 9+ messages in thread
From: Robert Hancock @ 2007-01-15 14:24 UTC (permalink / raw)
To: Soeren Sonnenburg; +Cc: Linux Kernel
Soeren Sonnenburg wrote:
> Dear all,
>
> is it possible to explicitly tell the kernel to prioritize PCI traffic
> for a number of cards in pci slots x,y,z ?
>
> I am asking as severe ide traffic causes lost frames when watching TV
> using 2 DVB cards + vdr... This is simply due to the fact that the PCI
> bus is saturated...
>
> So, is any prioritizing of the PCI bus possible ?
That would be chipset dependent. Some chipsets may be able to assign
different arbitration priorities to different slots, but certainly you
can't do this generically..
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: prioritize PCI traffic ?
2007-01-17 20:22 ` Hans-Peter Jansen
@ 2007-01-27 0:32 ` Lee Revell
0 siblings, 0 replies; 9+ messages in thread
From: Lee Revell @ 2007-01-27 0:32 UTC (permalink / raw)
To: Hans-Peter Jansen
Cc: linux-kernel, Vaidyanathan Srinivasan, Soeren Sonnenburg
On 1/17/07, Hans-Peter Jansen <hpj@urpla.net> wrote:
> Am Montag, 15. Januar 2007 15:53 schrieb Vaidyanathan Srinivasan:
> >
> > 33Mhz 32-bit PCI bus on typical PC can do around 100MB/sec...
>
> Substract roughly n * 5MB for VIA chipsets, where n is the age (1 <= n <=
> 4), and even more for SIS, ATI..
While developing the latency tracer in the -rt kernel, Ingo and others
discovered that some SATA controllers can produce very bad DMA
starvation at higher speeds. A latency trace of such an event looks
like the entire system is going in slow motion. Presumably, vendors
do this to improve benchmark scores.
Try forcing your drives to a lower speed.
Lee
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: prioritize PCI traffic ?
2007-01-15 14:53 ` Vaidyanathan Srinivasan
@ 2007-01-17 20:22 ` Hans-Peter Jansen
2007-01-27 0:32 ` Lee Revell
0 siblings, 1 reply; 9+ messages in thread
From: Hans-Peter Jansen @ 2007-01-17 20:22 UTC (permalink / raw)
To: linux-kernel; +Cc: Vaidyanathan Srinivasan, Soeren Sonnenburg
Am Montag, 15. Januar 2007 15:53 schrieb Vaidyanathan Srinivasan:
>
> 33Mhz 32-bit PCI bus on typical PC can do around 100MB/sec...
Substract roughly n * 5MB for VIA chipsets, where n is the age (1 <= n <=
4), and even more for SIS, ATI..
Pete
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: prioritize PCI traffic ?
2007-01-15 14:00 ` Soeren Sonnenburg
@ 2007-01-15 14:53 ` Vaidyanathan Srinivasan
2007-01-17 20:22 ` Hans-Peter Jansen
0 siblings, 1 reply; 9+ messages in thread
From: Vaidyanathan Srinivasan @ 2007-01-15 14:53 UTC (permalink / raw)
To: Soeren Sonnenburg; +Cc: Linux Kernel
Soeren Sonnenburg wrote:
> On Mon, 2007-01-15 at 19:23 +0530, Vaidyanathan Srinivasan wrote:
>> Soeren Sonnenburg wrote:
>>> Dear all,
>>>
>>> is it possible to explicitly tell the kernel to prioritize PCI traffic
>>> for a number of cards in pci slots x,y,z ?
>>>
>>> I am asking as severe ide traffic causes lost frames when watching TV
>>> using 2 DVB cards + vdr... This is simply due to the fact that the PCI
>>> bus is saturated...
>> How do you know that the bus is saturated?
>
> I simply dd if=/dev/sd? of=/dev/null from four brand new sata-harddisks.
>
>> Are you streaming data to/from the ide hard disks/CDROM?
>
> yes.
>
>> Do you have DMAs 'ON' for the hard disks?
>
> yes.
Good.
>> Is everything just fine if there are no IDE traffic?
>
> yes.
Good.
>> Are you running 2.6 kernel with preempt 'ON'?
>
> no: CONFIG_PREEMPT_NONE=y
>
Try CONFIG_PREEMPT=y it may help. It made the system more responsive
for me.
>> Are all hardware on the same IRQ line? (shared interrupts)
>
> no: libata devices are on IRQ 16 and DVB devices on IRQ 20
Watch the interrupt count (/proc/interrupts) and interrupt rate,
that may give some clue on what is happening on the PCI bus.
>
>>> So, is any prioritizing of the PCI bus possible ?
>> The drivers + application indirectly can control priority on the
>> bus. Just reduce the priority of the application that uses IDE and
>> see if adjusting nice values of applications can change the scenario.
>
> That unfortunately did not help... no change...
33Mhz 32-bit PCI bus on typical PC can do around 100MB/sec... watch
your individual disk transfer rates and data rate to each DVB.
dd from 4 new SATA drive will probably fillup the bus. However,
depending on your motherboard, the integrated SATA controllers may
be on a different PCI bus than the one for the slots.
You can watch the lspci output to determine which bus the devices
are located.
--Vaidy
>
> Soeren
> --
> Sometimes, there's a moment as you're waking, when you become aware of
> the real world around you, but you're still dreaming.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: prioritize PCI traffic ?
2007-01-15 13:53 ` Vaidyanathan Srinivasan
@ 2007-01-15 14:00 ` Soeren Sonnenburg
2007-01-15 14:53 ` Vaidyanathan Srinivasan
0 siblings, 1 reply; 9+ messages in thread
From: Soeren Sonnenburg @ 2007-01-15 14:00 UTC (permalink / raw)
To: Vaidyanathan Srinivasan; +Cc: Linux Kernel
On Mon, 2007-01-15 at 19:23 +0530, Vaidyanathan Srinivasan wrote:
> Soeren Sonnenburg wrote:
> > Dear all,
> >
> > is it possible to explicitly tell the kernel to prioritize PCI traffic
> > for a number of cards in pci slots x,y,z ?
> >
> > I am asking as severe ide traffic causes lost frames when watching TV
> > using 2 DVB cards + vdr... This is simply due to the fact that the PCI
> > bus is saturated...
>
> How do you know that the bus is saturated?
I simply dd if=/dev/sd? of=/dev/null from four brand new sata-harddisks.
> Are you streaming data to/from the ide hard disks/CDROM?
yes.
> Do you have DMAs 'ON' for the hard disks?
yes.
> Is everything just fine if there are no IDE traffic?
yes.
> Are you running 2.6 kernel with preempt 'ON'?
no: CONFIG_PREEMPT_NONE=y
> Are all hardware on the same IRQ line? (shared interrupts)
no: libata devices are on IRQ 16 and DVB devices on IRQ 20
> > So, is any prioritizing of the PCI bus possible ?
>
> The drivers + application indirectly can control priority on the
> bus. Just reduce the priority of the application that uses IDE and
> see if adjusting nice values of applications can change the scenario.
That unfortunately did not help... no change...
Soeren
--
Sometimes, there's a moment as you're waking, when you become aware of
the real world around you, but you're still dreaming.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: prioritize PCI traffic ?
2007-01-15 11:07 Soeren Sonnenburg
2007-01-15 12:01 ` Andreas Mohr
@ 2007-01-15 13:53 ` Vaidyanathan Srinivasan
2007-01-15 14:00 ` Soeren Sonnenburg
1 sibling, 1 reply; 9+ messages in thread
From: Vaidyanathan Srinivasan @ 2007-01-15 13:53 UTC (permalink / raw)
To: Soeren Sonnenburg; +Cc: Linux Kernel
Soeren Sonnenburg wrote:
> Dear all,
>
> is it possible to explicitly tell the kernel to prioritize PCI traffic
> for a number of cards in pci slots x,y,z ?
>
> I am asking as severe ide traffic causes lost frames when watching TV
> using 2 DVB cards + vdr... This is simply due to the fact that the PCI
> bus is saturated...
How do you know that the bus is saturated?
Are you streaming data to/from the ide hard disks/CDROM?
Do you have DMAs 'ON' for the hard disks?
Is everything just fine if there are no IDE traffic?
Are you running 2.6 kernel with preempt 'ON'?
Are all hardware on the same IRQ line? (shared interrupts)
> So, is any prioritizing of the PCI bus possible ?
The drivers + application indirectly can control priority on the
bus. Just reduce the priority of the application that uses IDE and
see if adjusting nice values of applications can change the scenario.
--Vaidy
> Best
> Soeren
> --
> Sometimes, there's a moment as you're waking, when you become aware of
> the real world around you, but you're still dreaming.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: prioritize PCI traffic ?
2007-01-15 12:01 ` Andreas Mohr
@ 2007-01-15 12:07 ` Soeren Sonnenburg
0 siblings, 0 replies; 9+ messages in thread
From: Soeren Sonnenburg @ 2007-01-15 12:07 UTC (permalink / raw)
To: Andreas Mohr; +Cc: Linux Kernel
On Mon, 2007-01-15 at 13:01 +0100, Andreas Mohr wrote:
> Hi,
>
> On Mon, Jan 15, 2007 at 12:07:45PM +0100, Soeren Sonnenburg wrote:
> > Dear all,
> >
> > is it possible to explicitly tell the kernel to prioritize PCI traffic
> > for a number of cards in pci slots x,y,z ?
> >
> > I am asking as severe ide traffic causes lost frames when watching TV
> > using 2 DVB cards + vdr... This is simply due to the fact that the PCI
> > bus is saturated...
> >
> > So, is any prioritizing of the PCI bus possible ?
>
> You probably need to adjust PCI latency settings via setpci:
>
> http://www-128.ibm.com/developerworks/library/l-hw2.html
Thanks, but I already tried this...
> Not sure whether this is a LKML related question ;)
Well I already tried to set maximum latencies etc to the cards to
prioritize to no avail... This did not make a difference though. Maybe
this is due to the fact that a lot more has to be transferred (not just
sound, but video data) and this is not possible in a single
transaction ... ?!
Soeren
--
Sometimes, there's a moment as you're waking, when you become aware of
the real world around you, but you're still dreaming.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: prioritize PCI traffic ?
2007-01-15 11:07 Soeren Sonnenburg
@ 2007-01-15 12:01 ` Andreas Mohr
2007-01-15 12:07 ` Soeren Sonnenburg
2007-01-15 13:53 ` Vaidyanathan Srinivasan
1 sibling, 1 reply; 9+ messages in thread
From: Andreas Mohr @ 2007-01-15 12:01 UTC (permalink / raw)
To: Soeren Sonnenburg; +Cc: Linux Kernel
Hi,
On Mon, Jan 15, 2007 at 12:07:45PM +0100, Soeren Sonnenburg wrote:
> Dear all,
>
> is it possible to explicitly tell the kernel to prioritize PCI traffic
> for a number of cards in pci slots x,y,z ?
>
> I am asking as severe ide traffic causes lost frames when watching TV
> using 2 DVB cards + vdr... This is simply due to the fact that the PCI
> bus is saturated...
>
> So, is any prioritizing of the PCI bus possible ?
You probably need to adjust PCI latency settings via setpci:
http://www-128.ibm.com/developerworks/library/l-hw2.html
Not sure whether this is a LKML related question ;)
Andreas Mohr
^ permalink raw reply [flat|nested] 9+ messages in thread
* prioritize PCI traffic ?
@ 2007-01-15 11:07 Soeren Sonnenburg
2007-01-15 12:01 ` Andreas Mohr
2007-01-15 13:53 ` Vaidyanathan Srinivasan
0 siblings, 2 replies; 9+ messages in thread
From: Soeren Sonnenburg @ 2007-01-15 11:07 UTC (permalink / raw)
To: Linux Kernel
Dear all,
is it possible to explicitly tell the kernel to prioritize PCI traffic
for a number of cards in pci slots x,y,z ?
I am asking as severe ide traffic causes lost frames when watching TV
using 2 DVB cards + vdr... This is simply due to the fact that the PCI
bus is saturated...
So, is any prioritizing of the PCI bus possible ?
Best
Soeren
--
Sometimes, there's a moment as you're waking, when you become aware of
the real world around you, but you're still dreaming.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-01-27 0:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <fa.IZ3qyPHQu5qQWnA4jBWoHC54zJE@ifi.uio.no>
2007-01-15 14:24 ` prioritize PCI traffic ? Robert Hancock
2007-01-15 11:07 Soeren Sonnenburg
2007-01-15 12:01 ` Andreas Mohr
2007-01-15 12:07 ` Soeren Sonnenburg
2007-01-15 13:53 ` Vaidyanathan Srinivasan
2007-01-15 14:00 ` Soeren Sonnenburg
2007-01-15 14:53 ` Vaidyanathan Srinivasan
2007-01-17 20:22 ` Hans-Peter Jansen
2007-01-27 0:32 ` Lee Revell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).