netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ray Lehtiniemi <rayl@mail.com>
To: Scott Feldman <sfeldma@pobox.com>
Cc: netdev@oss.sgi.com
Subject: Re: how to tune a pair of e1000 cards on intel e7501-based system?
Date: Mon, 6 Dec 2004 16:12:35 -0700	[thread overview]
Message-ID: <20041206231235.GA18097@mail.com> (raw)
In-Reply-To: <20041206041002.GC7891@mail.com>

On Sun, Dec 05, 2004 at 09:10:03PM -0700, Ray Lehtiniemi wrote:
> 
> any idea why lspci -vv shows non-64bit, non-133 MHz?  (i am assuming
> that is what the minus sign means)
> 
>         Capabilities: [e4] PCI-X non-bridge device.
>                 Command: DPERE- ERO+ RBC=0 OST=0
>                 Status: Bus=0 Dev=0 Func=0 64bit- 133MHz- SCD- USC-, DC=simple, DMMRBC=0, DMOST=0, DMCRS=0, RSCEM-

turns out this is a bug in pci-utils-2.1.11.  it was not correctly
fetching the config information from the card, and was displaying
zeroed data instead.  i've included a patch at the end of this email
and have also forwarded it to martin mares.



> > Can you put one on D and the other on another bus?
> 
> not sure... have to look at the chassis tomorrow morning. a co-worker
> actually built the box, i've not seen it in person yet.

nope, can't move things around. this is a NexGate NSA 2040G, and everything
is built into the motherboard.




> > What kind of numbers are you getting?

i'm seeing about 100Kpps, with all settings at their defaults on the 2.4.20
kernel.

basically, i have a couple of desktop PCs generating 480 streams
of UDP data at 50 packets per second.  Packet size on the wire, including
96 bits of IFG, is 128 bytes.  these packets are forwarded through a user
process on the NexGen box to an echoer process which is also running on the
traffic generator boxes. the echoer sends them back to the NexGen user process,
which forwards them back to the generator process.  timestamps are logged
for each packet at send, loop and recv points.

anything over 480 streams, and i start to get large latencies and packet drops,
as measured by the timestamps in the sender and echoer process.

does 100Kpps sound reasonable for an untweaked 2.4.20 kernel?


thanks





diff -ur pciutils-2.1.11/lspci.c pciutils-2.1.11-rayl/lspci.c
--- pciutils-2.1.11/lspci.c	2002-12-26 13:24:50.000000000 -0700
+++ pciutils-2.1.11-rayl/lspci.c	2004-12-06 15:54:33.573313973 -0700
@@ -476,16 +476,19 @@
 static void
 show_pcix_nobridge(struct device *d, int where)
 {
-  u16 command = get_conf_word(d, where + PCI_PCIX_COMMAND);
-  u32 status = get_conf_long(d, where + PCI_PCIX_STATUS);
+  u16 command;
+  u32 status;
   printf("PCI-X non-bridge device.\n");
   if (verbose < 2)
     return;
+  config_fetch(d, where, 8);
+  command = get_conf_word(d, where + PCI_PCIX_COMMAND);
   printf("\t\tCommand: DPERE%c ERO%c RBC=%d OST=%d\n",
 	 FLAG(command, PCI_PCIX_COMMAND_DPERE),
 	 FLAG(command, PCI_PCIX_COMMAND_ERO),
 	 ((command & PCI_PCIX_COMMAND_MAX_MEM_READ_BYTE_COUNT) >> 2U),
 	 ((command & PCI_PCIX_COMMAND_MAX_OUTSTANDING_SPLIT_TRANS) >> 4U));
+  status = get_conf_long(d, where + PCI_PCIX_STATUS);
   printf("\t\tStatus: Bus=%u Dev=%u Func=%u 64bit%c 133MHz%c SCD%c USC%c, DC=%s, DMMRBC=%u, DMOST=%u, DMCRS=%u, RSCEM%c",
 	 ((status >> 8) & 0xffU), // bus
 	 ((status >> 3) & 0x1fU), // dev
@@ -509,6 +512,7 @@
   printf("PCI-X bridge device.\n");
   if (verbose < 2)
     return;
+  config_fetch(d, where, 8);
   secstatus = get_conf_word(d, where + PCI_PCIX_BRIDGE_SEC_STATUS);
   printf("\t\tSecondary Status: 64bit%c, 133MHz%c, SCD%c, USC%c, SCO%c, SRD%c Freq=%d\n",
 	 FLAG(secstatus, PCI_PCIX_BRIDGE_SEC_STATUS_64BIT),



-- 
----------------------------------------------------------------------
     Ray L   <rayl@mail.com>

  reply	other threads:[~2004-12-06 23:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-06  2:44 how to tune a pair of e1000 cards on intel e7501-based system? Ray Lehtiniemi
2004-12-06  3:34 ` Scott Feldman
2004-12-06  4:10   ` Ray Lehtiniemi
2004-12-06 23:12     ` Ray Lehtiniemi [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-12-08  1:10 Brandeburg, Jesse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041206231235.GA18097@mail.com \
    --to=rayl@mail.com \
    --cc=netdev@oss.sgi.com \
    --cc=sfeldma@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).