Re: [Icarus] Get the number of cache hits of nodes

From: Saino, Lorenzo <>
Date: Mon, 23 Jan 2017 19:00:32 +0000

Hi Igor,

If you run experiments and you use the CacheHitRatioCollector (which you can do by adding the "CACHE_HIT_RATIO" entry to the list of collectors in your config file) with its default configuration, in the result set you will have, in addition to the overall cache hit ratio, a dictionary with the hit ratio of each cache node, i.e. a dictionary mapping node id to its cache hit ratio. You don't have to write any additional code for that.

Is that what you're looking for?


From: <> on behalf of Igor Carvalho <>
Sent: 23 January 2017 13:52:28
Subject: [Icarus] Get the number of cache hits of nodes


I'd like to get the number of cache hits of the path from the receiver to source. I know that I need to include for that. To do so, I intend to use a dictionary so that it stores the nodes of the path and the number of cache hits. But the problem is that the class CacheHitRatioCollectors takes as parameters (off_path_hit, per_node, content_hit) and I don't know how to an object of this class stores in a dictionary the nodes and their cache hits. I really appreciate any help.


Igor Carvalho
Master on Computer Science - UFPA
GERCOM Researcher.
Received on Mon Jan 23 2017 - 19:01:21 GMT

This archive was generated by hypermail 2.3.0 : Mon Jan 23 2017 - 19:01:25 GMT