All of lore.kernel.org
 help / color / mirror / Atom feed
From: WANG Cong <xiyou.wangcong@gmail.com>
To: "Madhu R" <tuxmadhu@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: KLOGD loops continuously calling 'syslog' system call when prink is disabled
Date: Thu, 19 Jun 2008 16:34:16 +0100	[thread overview]
Message-ID: <20080619163416.57d7efc0@hack> (raw)
In-Reply-To: <94a8a9170806190609v4ad0049dva37c9712f3d928a1@mail.gmail.com>

On Thu, 19 Jun 2008 18:39:10 +0530
"Madhu R" <tuxmadhu@gmail.com> wrote:

> Hi All,
> 
>          when I disable printk(CONFIG_PRINTK=n) in the kernel config
> (2.6.26-rc6),  the klogd  loops continuously calling the 'syslog'
> system call. It consumes 99% of the cpu time ( using 'top' command ) .
> I found similar problem in the kernel mailing list and a patch had
> gone into the mainline kernel
> http://linux.derkeiler.com/Mailing-Lists/Kernel/2006-11/msg03317.html
> 
>          In the patch, it returns 'ENOSYS'' while calling 'syslog'
> system call if printk is disabled. So the klogd keeps on calling this
> 'syslog' and returns ENOSYS and this process takes most of the CPU
> time.
> 
> 
>          Please clarify whether I am following correct procedure or
> this is DEFAULT behavior of klogd.


IIRC, this is the fault of klogd. It doesn't check the return value
of syslog(2) (or klogclt(3), a wrapper in glibc) carefully.

If you can, please send a patch to sysklogd people.

Thanks.


-- 
Hi, I'm a .signature virus, please copy/paste me to help me spread
all over the world.

      reply	other threads:[~2008-06-19 15:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <94a8a9170806190531j7404c96ei4bee3cf5774cbe5a@mail.gmail.com>
     [not found] ` <94a8a9170806190559x3d253006ic009b9c4b6714e5b@mail.gmail.com>
     [not found]   ` <94a8a9170806190606r626bc57aq77c46586af97ea05@mail.gmail.com>
2008-06-19 13:09     ` KLOGD loops continuously calling 'syslog' system call when prink is disabled Madhu R
2008-06-19 15:34       ` WANG Cong [this message]

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=20080619163416.57d7efc0@hack \
    --to=xiyou.wangcong@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tuxmadhu@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.