How to remove the module latfs and repfs
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.
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.