Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi everybody,
I am currently mounting an external USB drive accordingly to:
http://dns323.kood.org/howto:external_drive
I used to usb-storage.ko module that you can download from this howto. However, I found out that this module seems to be compiled with the "USB verbose debug messages" option. As a result, when used in the debian chroot, it generates tons of log each time the USB drive is accessed in reading/writing.
Does someone know how to disable those annoying debug messages? Perhaps could someone, for instance, point me to an usb-storage.ko module that doesn't have the "USB verbose debug messages" enabled?
Any help would be appreciated!
Thanks,
Loïc.
Offline
ldomaigne wrote:
However, I found out that this module seems to be compiled with the "USB verbose debug messages" option. As a result, when used in the debian chroot, it generates tons of log each time the USB drive is accessed in reading/writing.
Does someone know how to disable those annoying debug messages? Perhaps could someone, for instance, point me to an usb-storage.ko module that doesn't have the "USB verbose debug messages" enabled?
I know that someone made a usb-storage module without debug messages, but it seems he didn't tell anyone...
Afaik, Paul has made the modules on dev.skcserver.de, not sure if he's aware of the problem.
Offline
I did compile it without debugging. It filled my logs :-(
However I have no good place to put it so I didn't tell anyone.
Offline
frodo wrote:
I did compile it without debugging. It filled my logs :-(
The intensive logging is one part of the problem. It can be however easily circumvented by configuring syslog (or syslog-ng depending on your flavor) to not log the kern.debug messages. But another drawback is the performance drop. Enclosed some figures for a transfer of a 240 Mb file from the internal disk to an extern usb disk with EXT2 file system:
copy from /mnt/HD_a2 to an external usb disk:
without starting chroot debian etch : 16s (15Mb/s)
with vanilla chroot debian etch : 39s (6.1Mb/s)
with debian etch + remove kern.debug: 29s (8.3Mb/s)
It's about a factor 2 when you copy with or without starting the chroot debian!!
My guess is that the etch syslog sub-system is flooded with the kernel messages from the USB driver. This seems to be confirmed by conducting the same experience with an optimized module:
same with optimized usb-storage.ko module:
without starting chroot debian etch : 15s (16Mb/s)
with vanilla chroot debian etch : 16s (15Mb/s)
Cheers,
Loïc.
Offline
fonz wrote:
I know that someone made a usb-storage module without debug messages, but it seems he didn't tell anyone...
Afaik, Paul has made the modules on dev.skcserver.de, not sure if he's aware of the problem.
Ok, I didn't plan to go that far... But I tried yesterday to install the cross-compile environment on my Fedora Core accordingly to:
http://dns323.kood.org/howto:crosscompile.
Well, it went much better than I expected, and I was able to produce today the 'usb-storage.ko' module without debugging. It can be downloaded at:
http://www.domaigne.com/download/dns-323/
Enjoy
Loïc.
Offline
ldomaigne wrote:
... Well, it went much better than I expected, and I was able to produce today the 'usb-storage.ko' module without debugging. It can be downloaded at:
http://www.domaigne.com/download/dns-323/
Enjoy
Loïc.
I just tested your usb-storage.ko module. It works. (FW 1.03)
Offline
ldomaigne,
Good findings. I suspected that it affected the performace. As I have my chroot on a usb-stick that is why I compiled a new kernel module. Sorry for not sharing but had no good place to put it :-(
Offline
ldomaigne wrote:
fonz wrote:
I know that someone made a usb-storage module without debug messages, but it seems he didn't tell anyone...
Afaik, Paul has made the modules on dev.skcserver.de, not sure if he's aware of the problem.Ok, I didn't plan to go that far... But I tried yesterday to install the cross-compile environment on my Fedora Core accordingly to:
http://dns323.kood.org/howto:crosscompile.
Well, it went much better than I expected, and I was able to produce today the 'usb-storage.ko' module without debugging. It can be downloaded at:
http://www.domaigne.com/download/dns-323/
Enjoy
Loïc.
Excellent!!
Offline
I had insmod the debug version of usb-storage.ko.
May I know how can I reinsert again the non-debug version of usb-storage.ko ?
When I try to insmod again, it says file exists.
Please help.
Thank you.
Offline
You need to remove the module from the memory.
if you do lsmod you'll have the module name, I guess usb-storage
then you can unload the module with rmmod, then reinsert
so it'll go like this:
rmmod usb-storage
insmod <path to non-debug version>/usb-storage
Cheers
Offline