Comments (6)
How much ram do you have?
from bigcache.
+ OS: Arch Linux x86_64
# Hostname: anders-desktop
### Kernel Release: 4.14.76-1-lts
##### Uptime: 1 day, 9:36
###### WM: i3
; #####; DE: None
+##.##### Packages: 538
+########## RAM: 2724 MB / 32045 MB
#############; Processor Type: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
###############+ $EDITOR: None
####### ####### Root: 17G / 49G (34%) (ext4)
.######; ;###;`".
.#######; ;#####.
#########. .########`
######' '######
;#### ####;
##' '##
#' `#
from bigcache.
Well, I cannot reproduce this failure.
Let me guess, 0Mb swap? :)
from bigcache.
Nope. 4GB swap.
from bigcache.
Which version of go are you running?
I'm running 1.11.1
from bigcache.
I also was not able to reproduce this, on Windows or Ubuntu.
PS P:\go\src\github.com\allegro\bigcache\caches_bench> go test -bench . -benchtime 1s ./... -timeout 30m
goos: windows
goarch: amd64
pkg: github.com/allegro/bigcache/caches_bench
BenchmarkMapSet-8 5000000 466 ns/op
BenchmarkConcurrentMapSet-8 1000000 1479 ns/op
BenchmarkFreeCacheSet-8 3000000 530 ns/op
BenchmarkBigCacheSet-8 3000000 465 ns/op
BenchmarkMapGet-8 5000000 356 ns/op
BenchmarkConcurrentMapGet-8 5000000 387 ns/op
BenchmarkFreeCacheGet-8 3000000 654 ns/op
BenchmarkBigCacheGet-8 3000000 435 ns/op
BenchmarkBigCacheSetParallel-8 10000000 192 ns/op
BenchmarkFreeCacheSetParallel-8 10000000 195 ns/op
BenchmarkConcurrentMapSetParallel-8 5000000 305 ns/op
BenchmarkBigCacheGetParallel-8 20000000 108 ns/op
BenchmarkFreeCacheGetParallel-8 20000000 117 ns/op
BenchmarkConcurrentMapGetParallel-8 10000000 213 ns/op
PASS
ok github.com/allegro/bigcache/caches_bench 92.819s
PS P:\go\src\github.com\allegro\bigcache\caches_bench> git rev-parse HEAD
84a0ff3f153cbd7e280a19029a864bb04b504e62
PS P:\go\src\github.com\allegro\bigcache\caches_bench> go version
go version go1.11.2 windows/amd64
mike@boulder /p/go/src/github.com/allegro/bigcache/caches_bench
% go test -bench . -benchtime 1s ./... -timeout 30m
goos: linux
goarch: amd64
pkg: github.com/allegro/bigcache/caches_bench
BenchmarkMapSet-8 3000000 439 ns/op
BenchmarkConcurrentMapSet-8 1000000 1481 ns/op
BenchmarkFreeCacheSet-8 500000 2588 ns/op
BenchmarkBigCacheSet-8 500000 2632 ns/op
BenchmarkMapGet-8 5000000 339 ns/op
BenchmarkConcurrentMapGet-8 5000000 371 ns/op
BenchmarkFreeCacheGet-8 500000 2699 ns/op
BenchmarkBigCacheGet-8 3000000 442 ns/op
BenchmarkBigCacheSetParallel-8 2000000 647 ns/op
BenchmarkFreeCacheSetParallel-8 2000000 741 ns/op
BenchmarkConcurrentMapSetParallel-8 5000000 313 ns/op
BenchmarkBigCacheGetParallel-8 20000000 201 ns/op
BenchmarkFreeCacheGetParallel-8 2000000 722 ns/op
BenchmarkConcurrentMapGetParallel-8 10000000 184 ns/op
PASS
ok github.com/allegro/bigcache/caches_bench 142.104s
mike@boulder /p/go/src/github.com/allegro/bigcache/caches_bench
% git rev-parse HEAD
84a0ff3f153cbd7e280a19029a864bb04b504e62
mike@boulder /p/go/src/github.com/allegro/bigcache/caches_bench
% go version
go version go1.11.2 linux/amd64
Closing for now, please let us know if you are still stuck.
from bigcache.
Related Issues (20)
- LifeWindow Not valid HOT 1
- Error logs about bytes allocation? HOT 1
- why did my key expired HOT 7
- resetKeyFromEntry HOT 1
- Excessive memory allocation HOT 1
- The index(int) of entries(queue.BytesQueue) overflows the hashmap's uint32 value HOT 4
- Memory so high, and when clean not reduce size HOT 5
- Benchmark is not fair, So the speed can't be trusted HOT 4
- Whether it is a bug ? HOT 1
- Why doesn't bigcache consider designing expiration time for each cache key? HOT 4
- How does bigcache handle hash collisions HOT 1
- BigCache is logging allocations it should not HOT 4
- Support for the map? HOT 1
- compile a 32-bit LSB executable on arm and Execution error-> panic: unaligned 64-bit atomic operation HOT 4
- Is there a memory leak in bigcache? HOT 4
- Add multi-level cache design HOT 2
- Why do we need to configure both lifeWindow and cleanWindow? HOT 2
- GRPC server support HOT 4
- feature: Support uint64 keys without converting to string then back again HOT 6
- Proposal to Integrate SIEVE Eviction Algorithm
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bigcache.