summaryrefslogtreecommitdiff
path: root/src/slowlog.c
Commit message (Collapse)AuthorAgeFilesLines
* Clarify comment in change fixing #4323.antirez2017-09-211-2/+6
|
* Lazyfree: avoid memory leak when free slowlog entryzhaozhao.zz2017-09-211-2/+5
|
* SLOWLOG: log offending client address and name.antirez2017-06-151-4/+11
|
* RDMF: REDIS_OK REDIS_ERR -> C_OK C_ERR.antirez2015-07-261-1/+1
|
* RDMF: OBJ_ macros for object related stuff.antirez2015-07-261-3/+3
|
* RDMF: use client instead of redisClient, like Disque.antirez2015-07-261-1/+1
|
* RDMF (Redis/Disque merge friendlyness) refactoring WIP 1.antirez2015-07-261-1/+1
|
* Introduction of a new string encoding: EMBSTRantirez2013-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously two string encodings were used for string objects: 1) REDIS_ENCODING_RAW: a string object with obj->ptr pointing to an sds stirng. 2) REDIS_ENCODING_INT: a string object where the obj->ptr void pointer is casted to a long. This commit introduces a experimental new encoding called REDIS_ENCODING_EMBSTR that implements an object represented by an sds string that is not modifiable but allocated in the same memory chunk as the robj structure itself. The chunk looks like the following: +--------------+-----------+------------+--------+----+ | robj data... | robj->ptr | sds header | string | \0 | +--------------+-----+-----+------------+--------+----+ | ^ +-----------------------+ The robj->ptr points to the contiguous sds string data, so the object can be manipulated with the same functions used to manipulate plan string objects, however we need just on malloc and one free in order to allocate or release this kind of objects. Moreover it has better cache locality. This new allocation strategy should benefit both the memory usage and the performances. A performance gain between 60 and 70% was observed during micro-benchmarks, however there is more work to do to evaluate the performance impact and the memory usage behavior.
* BSD license added to every C source and header file.antirez2012-11-081-4/+35
|
* Limit memory used by big SLOWLOG entries.antirez2012-04-211-6/+29
| | | | | | | | | | | Two limits are added: 1) Up to SLOWLOG_ENTRY_MAX_ARGV arguments are logged. 2) Up to SLOWLOG_ENTRY_MAX_STRING bytes per argument are logged. 3) slowlog-max-len is set to 128 by default (was 1024). The number of remaining arguments / bytes is logged in the entry so that the user can understand better the nature of the logged command.
* Added an unique ID field to every slow log entry.antirez2011-06-301-1/+4
|
* More redis.conf self-documentation. Now even queries that took exactly ↵antirez2011-06-301-1/+1
| | | | server.slow_log_slower_than are logged, as this is not exact but is more intuitive for people, and a value of 0 will force every query to be logged.
* slow log configuration implementedantirez2011-06-301-0/+1
|
* First implementation of the slow log featureantirez2011-06-301-0/+111