public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: dhk <dhkuhl@optonline.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] /var/log/messages is huge
Date: Tue, 17 Aug 2010 06:57:13 -0400	[thread overview]
Message-ID: <4C6A6B09.4060400@optonline.net> (raw)
In-Reply-To: <8B8B7397-059B-4387-824A-E7697A55327F@floriancrouzat.net>

On 08/17/2010 02:45 AM, Florian CROUZAT wrote:
> 
> On 17 août 2010, at 02:58, Adam Carter wrote:
> 
>>> Aug 16 20:22:59 host kernel: usb-storage: -- transfer complete
>>> Aug 16 20:22:59 host kernel: usb-storage: Bulk command transfer result=0
>>> Aug 16 20:22:59 host kernel: usb-storage: Attempting to get CSW...
>>> Aug 16 20:22:59 host kernel: usb-storage: usb_stor_bulk_transfer_buf:
>>> xfer 13 bytes
>>> Aug 16 20:22:59 host kernel: usb-storage: Status code 0; transferred 13/13
>>> Aug 16 20:22:59 host kernel: usb-storage: -- transfer complete
>>> Aug 16 20:22:59 host kernel: usb-storage: Bulk status result = 0
>>> Aug 16 20:22:59 host kernel: usb-storage: Bulk Status S 0x53425355 T
>>> 0x5c33 R 0 Stat 0x0
>>> Aug 16 20:22:59 host kernel: usb-storage: scsi cmd done, result=0x0
>>> Aug 16 20:22:59 host kernel: usb-storage: *** thread sleeping.
>>>
>>> What's going on here?  Why all these usb-storage messages?
> 
>> You've probably turned on CONFIG_USB_STORAGE_DEBUG when you configured the kernel
> 
> Yeah and not only it makes your logs huge, but it also slows down your box using your CPU to flood while doing USB transfer.
> On my old box, with CONFIG_USB_STORAGE_DEBUG set, syslog-ng eats 25% of my CPU when doing ntfs3g.
> Totally something you want to turn off, unless you have serious issues with USB.
> 
> ----
> Florian
> / For security reasons, all text in this mail 
>   is double-rot13 encrypted. /
> 

Yes, I have it turned on in the kernel.
# grep CONFIG_USB_STORAGE_DEBUG
/etc/kernels/kernel-config-x86_64-2.6.32-gentoo-r7
CONFIG_USB_STORAGE_DEBUG=y

I don't understand why it just started to be a problem.  I've had this
kernel for almost four months.  Shouldn't the log's be rotated and purged?

I've been using the default kernel config from the install.  I'll make a
new kernel with it turned off.

Thanks,

dhk



  reply	other threads:[~2010-08-17 10:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-17  0:33 [gentoo-user] /var/log/messages is huge dhk
2010-08-17  0:58 ` Adam Carter
2010-08-17  6:45   ` Florian CROUZAT
2010-08-17 10:57     ` dhk [this message]
2010-08-17 11:17       ` Alex Schuster
2010-08-17 11:45         ` dhk
2010-08-17 23:40       ` Peter Humphrey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C6A6B09.4060400@optonline.net \
    --to=dhkuhl@optonline.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox