• Oran Agra's avatar
    memory reporting of clients argv (#7874) · bea40e6a
    Oran Agra authored
    track and report memory used by clients argv.
    this is very usaful in case clients started sending a command and didn't
    complete it. in which case the first args of the command are already
    trimmed from the query buffer.
    
    in an effort to avoid cache misses and overheads while keeping track of
    these, i avoid calling sdsZmallocSize and instead use the sdslen /
    bulk-len which can at least give some insight into the problem.
    
    This memory is now added to the total clients memory usage, as well as
    the client list.
    bea40e6a
server.c 198 KB