Giter VIP home page Giter VIP logo

Comments (6)

AnaMazda avatar AnaMazda commented on August 16, 2024 1

thank you very much @pjattke for your time

from blacksmith.

pjattke avatar pjattke commented on August 16, 2024

Hi @AnaMazda
See the README regarding the dimm-id parameter:

[...] we can run Blacksmith in fuzzing mode by passing a random DIMM ID (e.g., --dimm-id 1; only used internally for logging into stdout.log)

That said, dimm-id does not affect anything except for the logged output ing stdout.log.

I would suggest playing with the parameters we pass to mmap (see Memory.cpp):

  • Try replacing MAP_SHARED by MAP_PRIVATE
  • Try removing MAP_ANONYMOUS

Does anything of that make the program work? Do you get by chance any compilation errors/warnings?

from blacksmith.

AnaMazda avatar AnaMazda commented on August 16, 2024

its compiled without any errors/warnings but the same issue still.

from blacksmith.

pjattke avatar pjattke commented on August 16, 2024

Are you running Blacksmith on a native host (i.e., no VM or similar)? Are you compiling Blacksmith with gcc-8/g++-8?

I'm sorry but it's hard to tell what's the issue as I cannot reproduce it on any of our systems. Please consult Google or StackOverflow for general advice on mmap. A few more things you could try:

  • You could post the synopsis section of man mmap so I can compare if anything of the interface changed (what I wouldn't expect though).
  • Try to change the other call parameters of our call to mmap too:
    • What happens if you change the start_address in Memory.hpp? You could also try with just passing NULL to this parameter.
    • Does a smaller allocation (changing MEM_SIZE) succeed?
  • You could try to add -ggdb3 to the targets bs and blacksmith in CMakeLists.txt and then run blacksmith via gdb, e.g.: sudo gdb --args ./blacksmith --dimm-id 0 --runtime-limit 120 --ranks 1

Please note that besides this issue you will also need to update the DRAM address function if you are not using an i7-8700K (probably, others of the same u-arch "Coffee Lake" would also work). Otherwise Blacksmith won't know how to address rows in order to hammer them.

from blacksmith.

AnaMazda avatar AnaMazda commented on August 16, 2024

yes I'm using VMware !!

mmap synopsis

SYNOPSIS
       #include <sys/mman.h>

       void *mmap(void *addr, size_t length, int prot, int flags,
                  int fd, off_t offset);
       int munmap(void *addr, size_t length);

from blacksmith.

pjattke avatar pjattke commented on August 16, 2024

We haven't tested Blacksmith in a VM yet. But you probably have the issue described in this SO post: invalid argument in mmap.

Feel free to make the required changes and submit a PR. We would be happy to incorporate the required changes. Thanks!

from blacksmith.

Related Issues (14)

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.