Skip to content
New issue

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

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

Already on GitHub? # to your account

How to remove the module latfs and repfs #12

Open
sunshineffmx opened this issue Mar 10, 2021 · 1 comment
Open

How to remove the module latfs and repfs #12

sunshineffmx opened this issue Mar 10, 2021 · 1 comment

Comments

@sunshineffmx
Copy link

Dear authors:
After I tried to run the test (using command "echo task=1,op=0 > /proc/lattester"), I encountered a problem when I wanted to remove the two modules.
sudo ./umount.sh
output:
umount: /mnt/latency: not mounted.
umount: /mnt/report: not mounted.
rmmod: ERROR: Module latfs is in use
rmmod: ERROR: Module repfs is in use by: latfs

lsmod | grep latfs
output:
latfs 61440 3
repfs 16384 1 latfs

If I tried to load modules again,
sudo ./mount.sh /dev/pmem0 /dev/pmem1
output:
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-62-generic'
gcc -O2 -o gen_tasks gen_tasks.c -mmmx -msse2 -mavx -mpreferred-stack-boundary=4 -DAEP_SUPPORTED -DFENCE
Unmounting existing ReportFS
umount: /mnt/latency: not mounted.
umount: /mnt/report: not mounted.
rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'latfs': Resource temporarily unavailable
rmmod: ERROR: could not remove module latfs: Resource temporarily unavailable
rmmod: ERROR: Module repfs is in use by: latfs
insmod: ERROR: could not insert module repfs.ko: File exists
insmod: ERROR: could not insert module latfs.ko: File exists
mount: /mnt/report: /dev/pmem0 already mounted on /mnt/pmem0.
mount: /mnt/latency: /dev/pmem1 already mounted on /mnt/pmem1.

I tried to find a solution online, but I failed. Can you tell me how to solve the problem.

@TheNetAdmin
Copy link
Member

It seems you are using Linux 5.4.0, have you tried any previous version like 4.13 or 5.0?

There might be some kernel changes in these new versions that potentially break the LATTester modules.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants