Code Monkey home page Code Monkey logo

webcachesim's Issues

Create a proper Makefile

  • current Makefile doesn track changes to cache policies
  • should also incorporate examples and more of them

Update example docs

Hi,

I think that the command used in the example is wrong

./webcachesim trace.txt LRU 30 0 10

Cheers,
Nick

Terminates early with "unable to append int64"

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

Compilation error

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

Not the expected results

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

Exception opening file /trace/wiki2018.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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.