Code Monkey home page Code Monkey logo

Comments (5)

ColinIanKing avatar ColinIanKing commented on June 9, 2024

Hi there,

Stress-ng tries to determine the cache size from information provided by the available kernel interfaces. Some systems don't provide this information so stress-ng cannot determine this. One needs to look this up manually using the processor details and provide it via the --cache-size option, for example:

stress-ng --cache 0 --cache-size 32K

Hope that helps.

from stress-ng.

xinxi7277 avatar xinxi7277 commented on June 9, 2024

Great, thanks!
I check, and see option of l1-cachesize
Stress-ng --cache 0 --l1cache-size 128K -t 1m
But I could not find l2cache-size. stress-ng --cache 0 --l2cache-size 128K -t 2m
stress-ng: unrecognized option '--l2cache-size'

Check the source code, it has only stress-l1cache.c, not l2.
Is there cmd to dump cache info such as calling stress_get_all_cpu_cache_details?

from stress-ng.

ColinIanKing avatar ColinIanKing commented on June 9, 2024

The --l1-cachesize option applies to just the l1cache stressor which is entirely different from the cache stressor.

use: stress-ng --cache 0 --cache-size 128K -t 1m

The cache stressor performs some pathologically awful read/write patterns and for x86 processors can exercise a wide range of cache related CPU operations. The l1cache stressor is designed to just exercise cache evictions and is a different cache stressor use case to the cache stressor.

from stress-ng.

xinxi7277 avatar xinxi7277 commented on June 9, 2024

from stress-ng.

ColinIanKing avatar ColinIanKing commented on June 9, 2024

Yes, as long as you know the ARM processor cache size. Some Linux ARM systems provide cache information in their device tree and this can be presented to user space programs, however, some don't, such as your device, in which case you need to supply the cache size to the stress-ng cache stressor.

from stress-ng.

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.