From: Matthew Lear <matt@bubblegen.co.uk>
To: linux-m68k@vger.kernel.org
Subject: tlb misses on m68k w/MMU & system performance impact
Date: Fri, 01 May 2009 15:42:03 +0100 [thread overview]
Message-ID: <49FB0A3B.2060005@bubblegen.co.uk> (raw)
Hello,
I'm running a Freescale 2.6.23 linux kernel on an m68k mcf54455 based platform.
The kernel timer tick is 10msec and the MMU on the device is being utilised.
When the system should be idle (ie kernel booted, 'bare bones' user space
entered and sitting at login prompt), it seems to be constantly servicing
hardware interrupts. I am looking into some rx throughput problems regarding the
fec driver, but I thought it prudent to deal with this issue first since it may
well be impacting all sorts of things.
top indicates:
top - 00:08:13 up 8 min, 1 user, load average: 0.00, 0.02, 0.00
Tasks: 24 total, 1 running, 23 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.8%us, 0.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 99.2%hi, 0.0%si, 0.0%st
Mem: 255320k total, 7736k used, 247584k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 4280k cached
vmstat indicates:
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
2 0 0 247304 0 4280 0 0 0 0 153 210 1 99 0 0
/proc/interrupts does not indicate that any irq lines are shared.
using readprofile, I obtained the following over a 30 sec period after issuing
readprofile -r:
~ # readprofile
3353 default_idle 128.9615
1 __do_fault 0.0010
1 handle_mm_fault 0.0007
2 check_poison_obj 0.0034
1 kmem_cache_free 0.0034
18 __ashrdi3 0.2250
1 __lshrdi3 0.0139
5 memmove 0.0194
3382 total 0.0015
~ #
Adding debug prints into arch/m68k/coldfire/traps.c indicates that there is a
very high number of TLB misses happening. For example:
[ 33.790000] *** Bus Error *** (e)TLB R miss
[ 33.790000] pc 0x8012d850, mmusr 0x0, complainingAddress 0x801d439c
[ 33.790000] *** Bus Error *** (e)TLB R miss
[ 33.790000] pc 0xc0154bd8, mmusr 0x0, complainingAddress 0x801bbae3
[ 33.790000] *** Bus Error *** (e)TLB R miss
[ 33.790000] pc 0x800ee64c, mmusr 0x0, complainingAddress 0x801cd7c8
[ 33.790000] *** Bus Error *** (e)TLB R miss
[ 33.790000] pc 0x800ee650, mmusr 0x0, complainingAddress 0x801cf788
[ 33.790000] *** Bus Error *** (e)TLB R miss
[ 33.790000] pc 0x8012ec16, mmusr 0x0, complainingAddress 0x801d07a4
[ 33.790000] *** Bus Error *** (e)TLB R miss
[ 33.790000] pc 0x8012ec20, mmusr 0x0, complainingAddress 0x801cbcf4
[ 33.790000] *** Bus Error *** (5)TLB X miss (opword)
[ 33.790000] pc 0x80131302, mmusr 0x0, complainingAddress 0x801cbcf4
[ 33.790000] *** Bus Error *** (5)TLB X miss (opword)
[ 33.790000] pc 0x80133fc4, mmusr 0x0, complainingAddress 0x801cbcf4
[ 33.790000] *** Bus Error *** (5)TLB X miss (opword)
[ 33.790000] pc 0x801746a8, mmusr 0x0, complainingAddress 0x801cbcf4
[ 33.790000] *** Bus Error *** (5)TLB X miss (opword)
[ 33.790000] pc 0x8014377a, mmusr 0x0, complainingAddress 0x801cbcf4
[ 33.790000] *** Bus Error *** (5)TLB X miss (opword)
[ 33.790000] pc 0x8013530c, mmusr 0x0, complainingAddress 0x801cbcf4
[ 33.790000] *** Bus Error *** (a)TLB W miss
[ 33.790000] pc 0x801437f2, mmusr 0x0, complainingAddress 0x8008059c
[ 33.790000] *** Bus Error *** (5)TLB X miss (opword)
[ 33.790000] pc 0x80148014, mmusr 0x0, complainingAddress 0x8008059c
[ 33.790000] *** Bus Error *** (e)TLB R miss
[ 33.790000] pc 0x80148024, mmusr 0x0, complainingAddress 0x801bc6c2
I realise that this is a soft-translated arch and that a TLB miss generates an
exception. However, the amount of bus errors strikes me as odd and I suspect
they are indicative of a mis-configuration somewhere which is having a serious
impact on overall system performance.
Is anybody able to advise or provide some explanation as to what the reason(s)
could for such behaviour?
Much appreciated.
-- Matt
reply other threads:[~2009-05-01 14:52 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=49FB0A3B.2060005@bubblegen.co.uk \
--to=matt@bubblegen.co.uk \
--cc=linux-m68k@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox