• Chuck Lever's avatar
    SUNRPC: Revert e0a912e8 · 89d2d9fb
    Chuck Lever authored
    Flamegraph analysis showed that the cork/uncork calls consume
    nearly a third of the CPU time spent in svc_tcp_sendto(). The
    other two consumers are mutex lock/unlock and svc_tcp_sendmsg().
    
    Now that svc_tcp_sendto() coalesces RPC messages properly, there
    is no need to introduce artificial delays to prevent sending
    partial messages.
    
    After applying this change, I measured a 1.2K read IOPS increase
    for 8KB random I/O (several percent) on 56Gb IP over IB.
    Reviewed-by: default avatarDavid Howells <dhowells@redhat.com>
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    89d2d9fb
svcsock.c 42 KB