DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

#1 2007-07-17 14:03:44

ldomaigne
Member
Registered: 2007-06-24
Posts: 28

usb-storage.ko module without debugging enabled?

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,
Loc.

Offline

 

#2 2007-07-17 15:31:18

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: usb-storage.ko module without debugging enabled?

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

 

#3 2007-07-18 02:14:32

frodo
Member
From: Stockholm, Sweden
Registered: 2007-01-17
Posts: 259

Re: usb-storage.ko module without debugging enabled?

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

 

#4 2007-07-18 23:54:46

ldomaigne
Member
Registered: 2007-06-24
Posts: 28

Re: usb-storage.ko module without debugging enabled?

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!! yikes
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,
Loc.

Offline

 

#5 2007-07-19 00:05:38

ldomaigne
Member
Registered: 2007-06-24
Posts: 28

Re: usb-storage.ko module without debugging enabled?

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 cool
Loc.

Offline

 

#6 2007-07-19 01:10:48

transstilben
Member
From: Germany
Registered: 2007-06-15
Posts: 45
Website

Re: usb-storage.ko module without debugging enabled?

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 cool
Loc.

I just tested your usb-storage.ko module. It works.  smile  (FW 1.03)


DNS-323 FW1.03, 500GB-Samsung HD, 4-port USB-Hub, Clients: Vista Home Basic 64 bit, XP-Professional

Offline

 

#7 2007-07-19 01:24:50

frodo
Member
From: Stockholm, Sweden
Registered: 2007-01-17
Posts: 259

Re: usb-storage.ko module without debugging enabled?

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

 

#8 2007-07-19 04:24:18

DNS-323 Talker
Member
Registered: 2007-05-21
Posts: 245

Re: usb-storage.ko module without debugging enabled?

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 cool
Loc.

Excellent!!


DNS-323 w/two Seagate 500 GB RAID1
Fonz's Fun_Plug- Don't DNS-323 without it!

Offline

 

#9 2009-05-31 06:00:43

thamch
Member
Registered: 2008-09-23
Posts: 15

Re: usb-storage.ko module without debugging enabled?

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.


DLink DNS-323 w ffp 0.7
FW : 1.09

Offline

 

#10 2009-06-02 14:39:56

dweezil
Member
Registered: 2008-01-26
Posts: 18

Re: usb-storage.ko module without debugging enabled?

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


---------------------------------------------------------------
I have a message to deliver to the cute people of the world...if you're
cute, or maybe you're beautiful...there's MORE OF US UGLY MOTHERFUCKERS
OUT THERE THAN YOU ARE!! So watch out.  -- Frank Zappa

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB