All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Warasin <peter@endian.com>
To: linux-mmc@vger.kernel.org
Subject: damn slow SDHC card
Date: Mon, 11 Jul 2011 19:39:29 +0200	[thread overview]
Message-ID: <4E1B3551.1040505@endian.com> (raw)

hi guys

i have /var and swap on an SD card (sandisk class4 4GB) in an embedded
network device, which turns out to be reeeeally slow. System under
certain circumstances freezes and in top i see iowait at 90% and
processes which touch sd card, like kswapd, kjournald and *mmc*d are all
on io-wait (D)

i found some help at linaro for sorting out if it is the SD card, which
most probably is and try now to search a card which is fast enough

but tried also to sort out if maybe it is the kernel, because something
is fishy there.
can you guys help me a little on that?

the card is a high-speed card, but it is not running in highspeed mode:

cat /sys/kernel/debug/mmc0/ios
clock:		25000000 Hz
vdd:		20 (3.2 ~ 3.3 V)
bus mode:	2 (push-pull)
chip select:	0 (don't care)
power mode:	2 (on)
bus width:	2 (4 bits)
timing spec:	0 (legacy)


i then forced the card setting to highspeed mode (by commenting out some
returns in mmc_switch_hs() and found out that the card meets all
requirements for highspeed, but

card->sw_caps.hs_max_dtr is 0

is that value the maximum bus speed which the card can handle?
i assume when it is 0 it means it is limited to legacy specifications,
which is quite slow (?)

or is it regardless for performance if a SDHC card runs in legacy mode?

thank you in advance

kind regards,
peter


-- 
:: e n d i a n
:: open source - open minds

:: peter warasin
:: http://www.endian.com   :: peter@endian.com

                 reply	other threads:[~2011-07-11 18:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4E1B3551.1040505@endian.com \
    --to=peter@endian.com \
    --cc=linux-mmc@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.