dasebe / webcachesim Goto Github PK
View Code? Open in Web Editor NEWA C++11 simulator for a variety of CDN caching policies.
License: BSD 2-Clause "Simplified" License
A C++11 simulator for a variety of CDN caching policies.
License: BSD 2-Clause "Simplified" License
Hi,
I think that the command used in the example is wrong
./webcachesim trace.txt LRU 30 0 10
Cheers,
Nick
When running the following command:
docker run -it -v ~/traces:/trace sunnyszy/webcachesim:v0.2 memc_200m.tr LRU 1099511627776
...I got the following error:
terminate called after throwing an instance of 'bsoncxx::v_noabi::exception' what(): unable to append int64
The program's last output before the error was:
seq: 200000000 cache size: 42863945528/1093075226624 (0.0392141) delta t: 10.03 segment bmr: 0.0250343 rss: 6475599872
g++ -std=c++11 -MMD -MP -I./ -Wall -Werror -O2 -c -o caches/lru_variants.o caches/lru_variants.cpp
In file included from caches/lru_variants.cpp:5:
In file included from caches/lru_variants.h:6:
./cache.h:79:26: error: moving a temporary object prevents copy elision
[-Werror,-Wpessimizing-move]
Cache_instance = move(get_factory_instance()[name]->create_unique());
^
./cache.h:79:26: note: remove std::move call here
Cache_instance = move(get_factory_instance()[name]->create_unique());
^~~~~ ~
1 error generated.
make: *** [caches/lru_variants.o] Error 1
Hi,
I'm using the tool with the same warmup and traceFile with a very big number for the cacheSizeBytes and I would expect to see an object hit ration of 1.0. However I get something around to 0.37. How is this explained? (using LRU)
Cheers,
Nik
I got segment fault when using following cmd (seems not so big):
./basic_trace 3000000 50000 1.8 1 5000000000 test.tr
If I reduce the unique object size by a factor of 10, the program will be fine:
./basic_trace 300000 50000 1.8 1 5000000000 test.tr
Hello,
I am trying to run a simple sample with the docker, but it is showing an error:
Command: docker run -it -v Downloads:/trace sunnyszy/webcachesim:v0.1 wiki2018.tr LRU 1099511627776
error: running sanity check on trace: /trace/wiki2018.tr
terminate called after throwing an instance of 'std::runtime_error'
what(): Exception opening file /trace/wiki2018.tr
I am not sure if I am executing the commands correctly.
Could you help me with this, please?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.