Coder Social home page Coder Social logo

Comments (8)

jserv avatar jserv commented on May 24, 2024

The author of rv8 showed a neat technique to render histogram. See microsoft/mimalloc#529

from rv32emu.

jserv avatar jserv commented on May 24, 2024

register usage histogram generated by rv8.

from rv32emu.

qwe661234 avatar qwe661234 commented on May 24, 2024

I imported the LRU cache in this commit, so maybe we can display cache information in the profiling tool, such as cache size, cache hit rate, cache miss rate, cache hit times of a specific basic block, and the PC of the basic block.
For example,

Total cache access: xxx
Cache miss rate: xx.x%
Cache hit rate: xx.x%
Block PC   |   hit times   |   instruction in this block    |
---------  | ------------  |  ----------------------------  |
    0x4    | xxx [xx.x%]   |         LW ADD  BEQ            |
.
.
.

from rv32emu.

jserv avatar jserv commented on May 24, 2024

Check the way how mimalloc displays the internal information depending on environment variable MIMALLOC_VERBOSE and MIMALLOC_SHOW_STATS. Of course, the feature can be turned off via build-time flags.

from rv32emu.

jserv avatar jserv commented on May 24, 2024

It is feasible to reuse existing map for LRU cache implementation. See https://jaeyu.wordpress.com/2014/04/15/lru-cache-in-c/

from rv32emu.

qwe661234 avatar qwe661234 commented on May 24, 2024

It is feasible to reuse existing map for LRU cache implementation. See https://jaeyu.wordpress.com/2014/04/15/lru-cache-in-c/

I try to integrate the existing map for LRU cache implementation, but the performance is worser than original version of LRU cache.

Performance of running CoreMarking

Mircoprocessor: Core i7-8700, Compiiler: gcc-12

  1. LRU cache with map: 464.427307 (Iterations/Sec)
  2. LRU cache without map: 978.822116 (Iterations/Sec)

from rv32emu.

jserv avatar jserv commented on May 24, 2024

I imported the LRU cache in this commit,

The memory management concerns on basic block should appear in #105 .
Here, we still work on the statistics.

from rv32emu.

jserv avatar jserv commented on May 24, 2024

rv64_emualtor comes with an ELF file instruction frequency analyzer. See rv_analyzer, which looks quite straightforward.

from rv32emu.

Related Issues (20)

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.