[lkml]   [2012]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Why the number of /proc/interrupts doesn't change when nic is under heavy workload?
    Le lundi 16 janvier 2012 à 07:53 +0100, Eric Dumazet a écrit :
    > Le dimanche 15 janvier 2012 à 17:27 -0500, Yuehai Xu a écrit :
    > > Thanks for replying! Please see below:
    > > My memcached uses 8 different UDP sockets(8 different UDP ports), so
    > > there should be no lock contention for a single UDP rx-queue.
    > Ah, I missed this mail, so you really should post here result of "perf
    > top -C 0", after you make sure your NIC interrupts are handled by cpu 0.
    > Also, what speed is your link, and how many UDP messages per second do
    > you receive ?

    RPS is not good for you because the generic rxhash computation will
    spread messages for UDP port XX on many different cpus (because rxhash
    computation takes into account the complete tuple (src ip, dst ip, src
    port, dst port), not only dst port.

    It would be better for your workload to only hash dst port, to avoid
    false sharing on socket structure.

    I guess we could extend rxhash computation to use a pluggable BPF
    filter, now we can have fast filters.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2012-01-16 08:03    [W:0.020 / U:232.036 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site