valkey/src
Oran Agra 76f3a63de1 memory reporting of clients argv (#7874)
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.

(cherry picked from commit bea40e6a41)
2020-10-27 09:12:01 +02:00
..
modules Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
.gitignore
acl.c Don't write replies if close the client ASAP (#7202) 2020-10-27 09:12:01 +02:00
adlist.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
adlist.h Speedup: unblock clients on keys in O(1). 2020-04-15 16:03:16 +02:00
ae_epoll.c diskless replication rdb transfer uses pipe, and writes to sockets form the parent process. 2019-10-07 21:06:30 +03:00
ae_evport.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
ae_kqueue.c
ae_select.c
ae.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
ae.h Added a refcount on timer events to prevent deletion of recursive timer calls 2020-05-15 22:23:24 +02:00
anet.c TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00
anet.h TLS: Connections refactoring and TLS support. 2019-10-07 21:06:13 +03:00
aof.c memory reporting of clients argv (#7874) 2020-10-27 09:12:01 +02:00
asciilogo.h string literal should be const char* 2020-03-25 15:54:34 +01:00
atomicvar.h Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
bio.c Make main thread killable so that it can be canceled at any time. 2020-10-27 09:12:01 +02:00
bio.h macro fix 2019-11-20 20:39:04 -05:00
bitops.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
blocked.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
childinfo.c RM_GetContextFlags provides indication that we're in a fork child (#7783) 2020-10-27 09:12:01 +02:00
cluster.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
cluster.h Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
config.c ignore slaveof no one in redis.conf (#7842) 2020-10-27 09:12:01 +02:00
config.h Add support for Haiku OS (#7435) 2020-10-27 09:12:01 +02:00
connection.c Fix connGetSocketError usage (#7811) 2020-10-27 09:12:01 +02:00
connection.h Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
connhelpers.h Conns: Fix connClose() / connAccept() behavior. 2020-03-25 15:55:24 +01:00
crc16_slottable.h Added basic support for clusters to redis-benchmark. 2019-03-01 17:53:14 +01:00
crc16.c
crc64.c Move CRC64 initialization in main(). 2020-05-08 10:37:35 +02:00
crc64.h Implemented CRC64 based on slice by 4 2020-04-28 11:20:15 +02:00
crcspeed.c Added crcspeed library 2020-04-28 11:20:15 +02:00
crcspeed.h Added crcspeed library 2020-04-28 11:20:15 +02:00
db.c Add Swapdb Module Event (#7804) 2020-10-27 09:12:01 +02:00
debug.c Further NetBSD update and build fixes. (#7831) 2020-10-27 09:12:01 +02:00
debugmacro.h
defrag.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
dict.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
dict.h
endianconv.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
endianconv.h
evict.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
expire.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
fmacros.h
geo.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
geo.h
geohash_helper.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
geohash_helper.h
geohash.c FIX: truncate max/min longitude,latitude related geo_point (ex: {180, 85.05112878} ) 2020-04-15 16:03:16 +02:00
geohash.h
gopher.c
help.h 6.0.8 2020-09-10 14:09:00 +03:00
hyperloglog.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
intset.c
intset.h
latency.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
latency.h Module API for LatencyAddSample 2019-10-24 14:24:55 +03:00
lazyfree.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
listpack_malloc.h
listpack.c warning: comparison between signed and unsigned integer in 32bit build (#7838) 2020-10-27 09:12:01 +02:00
listpack.h
localtime.c
lolwut5.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
lolwut6.c LOLWUT 6: always pick a default color sequence. 2019-10-28 11:10:58 +01:00
lolwut.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
lolwut.h add include guard for lolwut.h 2020-05-08 10:37:36 +02:00
lzf_c.c
lzf_d.c
lzf.h
lzfP.h Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
Makefile Makefile: enable program suffixes via PROG_SUFFIX (#7868) 2020-10-27 09:12:01 +02:00
memtest.c Add support for Haiku OS (#7435) 2020-10-27 09:12:01 +02:00
mkreleasehdr.sh Update mkreleasehdr.sh 2019-11-19 17:23:47 +08:00
module.c Modules: expose real client on conn events. 2020-10-27 09:12:01 +02:00
multi.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
networking.c memory reporting of clients argv (#7874) 2020-10-27 09:12:01 +02:00
notify.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
object.c Include internal sds fragmentation in MEMORY reporting (#7864) 2020-10-27 09:12:01 +02:00
pqsort.c
pqsort.h
pubsub.c Boost up performance for redis PUB-SUB patterns matching 2020-03-31 12:47:14 +02:00
quicklist.c fix integer overflow 2020-04-07 16:52:04 +02:00
quicklist.h Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
rand.c
rand.h
rax_malloc.h
rax.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
rax.h Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
rdb.c rdb.c: handle fclose error case differently to avoid double fclose (#7307) 2020-10-27 09:12:01 +02:00
rdb.h Fix redis-check-rdb support for modules aux data (#7826) 2020-10-27 09:12:01 +02:00
redis-benchmark.c [Redis-benchmark] Remove zrem test, add zpopmin test 2020-09-01 09:27:58 +03:00
redis-check-aof.c Enlarge error buffer in redis-check-aof.c to remove compiler warning of output truncation through snprintf format string 2019-05-08 12:13:45 +01:00
redis-check-rdb.c Fix redis-check-rdb support for modules aux data (#7826) 2020-10-27 09:12:01 +02:00
redis-cli.c redis-cli add control on raw format line delimiter (#7841) 2020-10-27 09:12:01 +02:00
redis-trib.rb
redisassert.h
redismodule.h RM_GetContextFlags provides indication that we're in a fork child (#7783) 2020-10-27 09:12:01 +02:00
release.c Speedup INFO server section. 2019-10-02 11:30:20 +02:00
replication.c Add fsync to readSyncBulkPayload(). (#7839) 2020-10-27 09:12:01 +02:00
rio.c diskless replication rdb transfer uses pipe, and writes to sockets form the parent process. 2019-10-07 21:06:30 +03:00
rio.h diskless replication rdb transfer uses pipe, and writes to sockets form the parent process. 2019-10-07 21:06:30 +03:00
scripting.c RM_GetContextFlags provides indication that we're in a fork child (#7783) 2020-10-27 09:12:01 +02:00
sds.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
sds.h Mark extern definition of SDS_NOINIT in sds.h 2020-02-12 14:17:54 +01:00
sdsalloc.h add missing file marco 2020-03-05 12:51:15 +01:00
sentinel.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
server.c memory reporting of clients argv (#7874) 2020-10-27 09:12:01 +02:00
server.h memory reporting of clients argv (#7874) 2020-10-27 09:12:01 +02:00
setcpuaffinity.c NetBSD build update. 2020-05-15 22:23:24 +02:00
setproctitle.c
sha1.c
sha1.h
sha256.c ACL: add slightly modified version of sha256.c for password hashing. 2019-09-12 12:21:37 +02:00
sha256.h ACL: add slightly modified version of sha256.c for password hashing. 2019-09-12 12:21:37 +02:00
siphash.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
slowlog.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
slowlog.h Added the missed macro definition in slowlog.h 2019-12-02 00:28:41 -05:00
solarisfixes.h
sort.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
sparkline.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
sparkline.h
stream.h Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
syncio.c
t_hash.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
t_list.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
t_set.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
t_stream.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
t_string.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
t_zset.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
testhelp.h
timeout.c Add missing calls to raxStop (#7532) 2020-09-01 09:27:58 +03:00
tls.c TLS: Do not require CA config if not used. (#7862) 2020-10-27 09:12:01 +02:00
tracking.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
util.c stringmatchlen() should not expect null terminated strings. 2020-05-08 10:37:36 +02:00
util.h Merge branch 'unstable' into rm_get_server_info 2019-11-21 10:06:15 +01:00
valgrind.sup Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
version.h 6.0.8 2020-09-10 14:09:00 +03:00
ziplist.c Fix redundancy use of semicolon in do-while macros in ziplist.c. (#7832) 2020-10-27 09:12:01 +02:00
ziplist.h
zipmap.c Squash merging 125 typo/grammar/comment/doc PRs (#7773) 2020-10-27 09:12:01 +02:00
zipmap.h
zmalloc.c getting rss size implementation for netbsd (#7293) 2020-10-27 09:12:01 +02:00
zmalloc.h Avoid collision with MacOS LIST_HEAD macro after #6384. 2019-12-02 09:13:29 +01:00