Results 1 to 1 of 1

Thread: EQPacketFragmentSequence addFragment buffer overflows

  1. #1
    Developer
    Join Date
    Jul 2004
    Posts
    920

    EQPacketFragmentSequence addFragment buffer overflows

    I took the time to write up something on the packet fragment buffer overruns that some people see, along with some recommendations with how to deal with it. This was added to the FAQ file in releases and will be in the next release where no one will read it and instead come here with half-assed bug reports.

    5) Seq keeps crashing with "!!!! EQPacketFragmentSequence::addFragment(): buffer
    overflow adding in new fragment". Why won't you fix this?

    This isn't actually a problem with seq, but rather the result of your
    configuration on your linux box. Your linux box is not handling all the packets
    it is receiving with its network card in promiscuous mode.

    In order to run, showeq needs the entire packet stream between the EQ client and
    the EQ servers. Packets are processed in order and if any packets are dropped,
    there may be problems decoding the stream causing showeq to crash or lose sync
    with the session.

    Usually this condition is signalled by console messages like:
    Warning: SEQ: Giving up on finding arq 0085 in stream zone-client cache, skipping!
    Warning: SEQ: Giving up on finding arq 0086 in stream zone-client cache, skipping!
    Warning: SEQ: Giving up on finding arq 0087 in stream zone-client cache, skipping!
    Warning: SEQ: Giving up on finding arq 0088 in stream zone-client cache, skipping!

    This signifies packets being dropped and being skipped in processing, which may
    cause the session stream to corrupt if the skipped packets are important. Other
    messages which may result when the stream is corrupted are:

    Warning: Oversized packet fragment requested buffer of size 0 on stream 3 OpCode
    0000 seq 00a6

    Warning: !!!! EQPacketFragmentSequence::addFragment(): buffer overflow adding in
    new fragment to buffer with seq 00fb on stream 3, opcode 0000. Buffer is size 3
    8302 and has been filled up to 38206, but tried to add 505 more!

    Both these messages mean that packets are being dropped that are important to
    the reconstruction of oversized payloads in the session stream. These messages
    may appear like showeq is broken, but in reality, the problem is that packets
    are not being provided to showeq because they are being dropped by the kernel
    before being made available to the application layer.

    The kernel may drop packets when under heavy loads (either CPU loads or network
    loads).

    When under high CPU utilization, the thread in showeq which reads from
    the kernel's receive buffers may be starved and not get enough processor time to
    empty the kernel receive buffers before those buffers run out of room and drop
    packets. To help this, you can set the showeq network thread to run "realtime"
    by turning on the Network->Real Time Thread option.

    When under high network traffic, the kernel's receive buffers may overflow
    before showeq gets a chance to empty the buffers, causing packets to be missed.
    This can happen when you have a lot of network traffic that is seen by the
    machine running showeq. The EQ client bursts a lot of traffic during zoning as
    well, so usually problems with high network traffic show themselves during
    zoning.

    To help this problem, try to narrow down the traffic that showeq watches by
    specifying the ip address of your EQ client on the commandline. Also, turn on
    Session Tracking using Network->Session Tracking. If problems persist after
    turning those options on, you may want to adjust kernel parameters to change how
    the kernel manages its receive buffers. Some parameters that may help you are:

    net.core.rmem_default (defaults to 65535, or 64k receive buffers)
    net.core.rmem_max (defaults to 131071, or 128k receive buffers)
    net.core.netdev_max_backlog (defaults to 300, or 300 packets can be input but
    unprocessed before packets start being dropped)

    These parameters should be set with care, and take into account what other
    things the linux box you are running showeq on is used for. If it has a lot of
    server duties, setting rmem_default will increase system memory usage
    significantly.

    Suggested settings for a normally used machine are:
    net.core.rmem_default=524288 (512k for default receive buffers)
    net.core.rmem_max=2097152 (2M for max receive buffers)
    net.core.netdev_max_backlog=3000 (allow 3000 packets to be queued before
    processing before dropping packets)

    If you still see problems, you may want to set these higher. Setting these may
    be distribution specific. Check to see if you have sysctl (man sysctl) or
    /etc/sysctl.conf, or these can be put directly into /proc by looking
    in /proc/sys/net/core.
    Last edited by purple; 06-23-2005 at 07:01 AM. Reason: Made title less omnious

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On