Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assignment 7, 8 #5

Merged
merged 11 commits into from
Nov 21, 2023
Merged

Assignment 7, 8 #5

merged 11 commits into from
Nov 21, 2023

Conversation

jimin-kiim
Copy link
Owner

Assignment 7: Profiling inside the kernel

  • added calclock.h, calclock.c
  • added fio script
  • used calclock in pxt4_file_write_iter() function to measure the execution time
  • made it print out the profiling result inside pxt4_exit_fs() function
  • modified Makefile
  • used it for profiling test
    • built pxt4 module
    • mounted the testing device with pxt4
    • run fio test
    • unmounted the device
    • removed pxt4 module
    • used dmesg command to check the profiling result

Assignment 8: Checking CPU utilization

  • used ds_monitoring to check how many time pxt4_file_write_iter() have been called from each CPU
    • added ds_monitoring.h, ds_monitoring.c
    • (added current.h)
      • to get current cpu id in more simple way
    • used find_ds_monitoring() inside pxt4_file_write_iter()
    • used print_ds_monitoring() and delete_ds_monitoring() inside pxt4_exit_fs()
    • modified Makefile
    • used it for checking CPU utilization
      • built pxt4 module
      • mounted the testing device with pxt4
      • run fio test
      • unmounted the device
      • removed pxt4 module
      • used dmesg command to check the profiling result

@jimin-kiim jimin-kiim self-assigned this Nov 21, 2023
@jimin-kiim jimin-kiim merged commit 0ea7f68 into main Nov 21, 2023
@jimin-kiim jimin-kiim deleted the assignment-6 branch November 21, 2023 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant