README 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ==============================================================================
  2. USAGE
  3. ==============================================================================
  4. ./memalloc_load.sh
  5. ===============================================================================
  6. What is memalloc?
  7. ===============================================================================
  8. memalloc is a test environment specific memory allocation kernel driver.
  9. It uses memory left outside linux memory management, divides it into chunks and
  10. gives base addresses to processes for these chunks(= a block of memory).
  11. It has been written for test memory purposes for a very specific test
  12. environment and nothing more.
  13. ===============================================================================
  14. Loading the memalloc kernel driver
  15. ===============================================================================
  16. 1. compile the kernel driver in software/linux/memalloc
  17. > make
  18. 2. For testing load kernel driver with:
  19. >./memalloc_load.sh
  20. ...or if you want to specify the max size in MB of linear memory:
  21. >./memalloc_load.sh alloc_size=400
  22. ...or if you want to specify the base address of linear memory:
  23. >./memalloc_load.sh alloc_base=0x42000000
  24. ...or both:
  25. >./memalloc_load.sh alloc_base=0x42000000 alloc_size=400
  26. 3. Debugging:
  27. the device node should show up in the the directory /dev
  28. The device should show up in the list /proc/devices
  29. > ls /dev
  30. > cat /proc/devices
  31. Kernel messages can be viewed with
  32. > dmesg
  33. More kernel debug prints can be enabled in the Makefile