~axino/redis/+git/trunk:argv-accounting

Last commit made on 2018-10-02
Get this branch:
git clone -b argv-accounting https://git.launchpad.net/~axino/redis/+git/trunk

Branch merges

Branch information

Name:
argv-accounting
Repository:
lp:~axino/redis/+git/trunk

Recent commits

ac44cee... by antirez <email address hidden>

Remove client->buf from output buffers in client info.

Technically it is correct that we count that, but the sense of the field
is more the *overhead* of the client compared to the baseline. So we
want to see idle clients at 0.

8b343f1... by antirez <email address hidden>

client argv mem reporting: less precise and expansive.

Avoid doing efforts to include fragmentation and just count the bulk
size: enough to give an hint about clients doing huge argv allocations
(the gist of the original patch was such detection), without risks of
performances impacts.

2379e5d... by Oran Agra <email address hidden>

memory reporting of clients argv

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.

fe43406... by Salvatore Sanfilippo <email address hidden>

Merge pull request #5397 from bmerry/fix-bad-zmalloc-size

Fix invalid use of sdsZmallocSize on an embedded string

9ce6386... by Salvatore Sanfilippo <email address hidden>

Merge pull request #5398 from bmerry/fix-zrealloc-accounting

Fix incorrect memory usage accounting in zrealloc

cd2ee8b... by Salvatore Sanfilippo <email address hidden>

Merge pull request #5396 from oranagra/cmdstats_exec

fix #5024 - commandstats for multi-exec were logged as EXEC.

1da93f8... by Salvatore Sanfilippo <email address hidden>

Merge pull request #5400 from halaei/fix-dict-get-on-not-found

fix dict get on not found

86fb7b2... by Hamid Alaei

fix dict get on not found

9e0e5cc... by antirez <email address hidden>

Fix XINFO comment for consistency.

8fd1031... by Bruce Merry

Fix incorrect memory usage accounting in zrealloc

When HAVE_MALLOC_SIZE is false, each call to zrealloc causes used_memory
to increase by PREFIX_SIZE more than it should, due to mis-matched
accounting between the original zmalloc (which includes PREFIX size in
its increment) and zrealloc (which misses it from its decrement).

I've also supplied a command-line test to easily demonstrate the
problem. It's not wired into the test framework, because I don't know
TCL so I'm not sure how to automate it.