Home
last modified time | relevance | path

Searched refs:limit (Results 1 – 19 of 19) sorted by relevance

/redis-3.2.3/tests/unit/
H A Dmaxmemory.tcl36 set limit [expr {$used+100*1024}]
37 r config set maxmemory $limit
44 if {[s used_memory]+4096 > $limit} {
68 set limit [expr {$used+100*1024}]
69 r config set maxmemory $limit
76 if {[s used_memory]+4096 > $limit} {
110 set limit [expr {$used+100*1024}]
111 r config set maxmemory $limit
123 if {[s used_memory]+4096 > $limit} {
H A Dobuf-limits.tcl2 test {Client output buffer hard limit is enforced} {
22 test {Client output buffer soft limit is not enforced if time is not overreached} {
48 test {Client output buffer soft limit is enforced if time is overreached} {
H A Dsort.tcl148 assert_equal [r sort zset by nosort asc limit 0 1] {a}
149 assert_equal [r sort zset by nosort desc limit 0 1] {d}
150 assert_equal [r sort zset by nosort asc limit 0 2] {a c}
151 assert_equal [r sort zset by nosort desc limit 0 2] {d b}
152 assert_equal [r sort zset by nosort limit 5 10] {}
153 assert_equal [r sort zset by nosort limit -10 100] {a c e b d}
197 r sort foo alpha limit 10 10 store zap
262 r sort testa by nosort limit 0 3 store testb
H A Dslowlog.tcl23 test {SLOWLOG - GET optional argument to limit output len works} {
H A Dscripting.tcl131 test {EVAL - Script can't run more than configured time limit} {
251 -- so, the final x.x is at the depth limit and was assigned nil
/redis-3.2.3/deps/lua/src/
H A Dlmem.c47 int limit, const char *errormsg) { in luaM_growaux_() argument
50 if (*size >= limit/2) { /* cannot double it? */ in luaM_growaux_()
51 if (*size >= limit) /* cannot grow even a little? */ in luaM_growaux_()
53 newsize = limit; /* still have at least one free place */ in luaM_growaux_()
H A Dlmem.h33 #define luaM_growvector(L,v,nelems,size,t,limit,e) \ argument
35 ((v)=cast(t *, luaM_growaux_(L,v,&(size),sizeof(t),limit,e)))
45 size_t size_elem, int limit,
H A Dlua_cmsgpack.c786 int mp_unpack_full(lua_State *L, int limit, int offset) { in mp_unpack_full() argument
791 int decode_all = (!limit && !offset); in mp_unpack_full()
795 if (offset < 0 || limit < 0) /* requesting negative off or lim is invalid */ in mp_unpack_full()
803 if (decode_all) limit = INT_MAX; in mp_unpack_full()
809 for(cnt = 0; c.left > 0 && cnt < limit; cnt++) { in mp_unpack_full()
851 int limit = luaL_checkinteger(L, 2); in mp_unpack_limit() local
856 return mp_unpack_full(L, limit, offset); in mp_unpack_limit()
H A Dlparser.c71 static void errorlimit (FuncState *fs, int limit, const char *what) { in errorlimit() argument
73 luaO_pushfstring(fs->L, "main function has more than %d %s", limit, what) : in errorlimit()
75 fs->f->linedefined, limit, what); in errorlimit()
828 static BinOpr subexpr (LexState *ls, expdesc *v, unsigned int limit) { in subexpr() argument
841 while (op != OPR_NOBINOPR && priority[op].left > limit) { in subexpr()
H A Dlvm.c657 lua_Number limit = nvalue(ra+1); in luaV_execute() local
658 if (luai_numlt(0, step) ? luai_numle(idx, limit) in luaV_execute()
659 : luai_numle(limit, idx)) { in luaV_execute()
H A Dldebug.c118 StkId limit = (ci == L->ci) ? L->top : (ci+1)->func; in findlocal() local
119 if (limit - ci->base >= n && n > 0) /* is 'n' inside 'ci' stack? */ in findlocal()
/redis-3.2.3/src/
H A Dbitops.c287 if (limit) { in checkUnsignedBitfieldOverflow()
291 *limit = max; in checkUnsignedBitfieldOverflow()
296 if (limit) { in checkUnsignedBitfieldOverflow()
300 *limit = 0; in checkUnsignedBitfieldOverflow()
313 *limit = res; in checkUnsignedBitfieldOverflow()
318 …eckSignedBitfieldOverflow(int64_t value, int64_t incr, uint64_t bits, int owtype, int64_t *limit) { in checkSignedBitfieldOverflow() argument
330 if (limit) { in checkSignedBitfieldOverflow()
334 *limit = max; in checkSignedBitfieldOverflow()
339 if (limit) { in checkSignedBitfieldOverflow()
343 *limit = min; in checkSignedBitfieldOverflow()
[all …]
H A Dt_zset.c2297 long offset = 0, limit = -1; in genericZrangebyscoreCommand() local
2329 (getLongFromObjectOrReply(c, c->argv[pos+2], &limit, NULL) != C_OK)) return; in genericZrangebyscoreCommand()
2382 while (eptr && limit--) { in genericZrangebyscoreCommand()
2446 while (ln && limit--) { in genericZrangebyscoreCommand()
2648 long offset = 0, limit = -1; in genericZrangebylexCommand() local
2676 (getLongFromObjectOrReply(c, c->argv[pos+2], &limit, NULL) != C_OK)) return; in genericZrangebylexCommand()
2734 while (eptr && limit--) { in genericZrangebylexCommand()
2794 while (ln && limit--) { in genericZrangebylexCommand()
H A Dserver.c1666 struct rlimit limit; in adjustOpenFilesLimit() local
1668 if (getrlimit(RLIMIT_NOFILE,&limit) == -1) { in adjustOpenFilesLimit()
1673 rlim_t oldlimit = limit.rlim_cur; in adjustOpenFilesLimit()
1687 limit.rlim_cur = bestlimit; in adjustOpenFilesLimit()
1688 limit.rlim_max = bestlimit; in adjustOpenFilesLimit()
1689 if (setrlimit(RLIMIT_NOFILE,&limit) != -1) break; in adjustOpenFilesLimit()
/redis-3.2.3/deps/jemalloc/test/include/test/
H A DSFMT.h72 uint32_t gen_rand32_range(sfmt_t *ctx, uint32_t limit);
74 uint64_t gen_rand64_range(sfmt_t *ctx, uint64_t limit);
/redis-3.2.3/deps/jemalloc/test/src/
H A DSFMT.c461 uint32_t gen_rand32_range(sfmt_t *ctx, uint32_t limit) { in gen_rand32_range() argument
464 above = 0xffffffffU - (0xffffffffU % limit); in gen_rand32_range()
468 ret %= limit; in gen_rand32_range()
511 uint64_t gen_rand64_range(sfmt_t *ctx, uint64_t limit) { in gen_rand64_range() argument
514 above = KQU(0xffffffffffffffff) - (KQU(0xffffffffffffffff) % limit); in gen_rand64_range()
518 ret %= limit; in gen_rand64_range()
/redis-3.2.3/deps/lua/
H A DHISTORY106 + increased limit on the number of constants and globals per function
/redis-3.2.3/deps/jemalloc/
H A DINSTALL238 <lg-size-class-group> you specify cannot be supported. The limit is
H A DChangeLog148 - Add the "stats.resident" mallctl, which reports the upper limit of
695 limit the amount of memory consumed by heap profiling data structures.