All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] dme1737 very slow read...
Date: Sun, 12 Aug 2007 12:15:27 +0000	[thread overview]
Message-ID: <20070812141527.097bd969@hyperion.delvare> (raw)
In-Reply-To: <46A8157E.7040003@sandeen.net>

Hi Mark, all,

On Thu, 26 Jul 2007 07:39:58 -0400, Mark M. Hoffman wrote:
> Max rate for standard I2C/SMBus is 100KHz.  However, the hardware which is
> most common on PCs usually runs at something like 10KHz.

Speed which our drivers don't even reach because they don't use
interrupts.

> > > Ok, I thought it might be along those lines.  Is there any other
> > > performance impact to the system while it's waiting for the I2C bus?
> > 
> > Good question, I don't know. That's more a question for the I2C
> > mailing list. Jean?
> 
> It depends on the specific I2C bus driver.  All of the most common ones use
> polling, so unfortunately you will see CPU % go to 100 during that 1.5 sec.

I don't think so. The I2C bus drivers sleep between polls, so most of
the time is spent sleeping. If we were "actively" polling (without
sleeping) it would be much faster, but would indeed suck the CPU time
so we don't do that.

Whoever is really concerned about slow I2C bus speed could spend some
time converting his/her I2C bus driver to use interrupts instead of
polling. I wanted to convert the i2c-i801 driver that way but could
never find the time for it.

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  parent reply	other threads:[~2007-08-12 12:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-26  3:31 [lm-sensors] dme1737 very slow read Eric Sandeen
2007-07-26  3:58 ` Juerg Haefliger
2007-07-26  5:14 ` Eric Sandeen
2007-07-26  5:39 ` Juerg Haefliger
2007-07-26  5:42 ` Juerg Haefliger
2007-07-26 11:39 ` Mark M. Hoffman
2007-08-12 12:15 ` Jean Delvare [this message]
2007-08-12 14:43 ` Mark M. Hoffman

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=20070812141527.097bd969@hyperion.delvare \
    --to=khali@linux-fr.org \
    --cc=lm-sensors@vger.kernel.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 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.