2008-09-15 16:44:55 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-18 09:43:32 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-02 02:01:15 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-18 09:43:32 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-02 02:01:15 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-18 09:43:32 +01:00
|
|
|
|
|
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-26 10:53:39 +08:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-03 21:45:59 +01:00
|
|
|
|
2010-10-26 14:21:51 -07:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-06-07 21:28:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-03 21:45:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-26 14:21:51 -07:00
|
|
|
|
|
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
2014-04-18 09:27:01 +01:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-02 02:01:15 -05:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-02 15:20:44 +01:00
|
|
|
|
|
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
2014-04-18 09:43:32 +01:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-26 10:53:39 +08:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
2010-10-26 14:21:51 -07:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
|
|
|
|
|
2010-10-26 14:21:51 -07:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
|
|
|
|
|
2010-10-27 15:32:58 -07:00
|
|
|
|
2010-10-26 14:21:51 -07:00
|
|
|
|
|
|
|
|
|
2010-03-29 21:46:02 +01:00
|
|
|
|
|
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
2014-04-18 09:27:01 +01:00
|
|
|
|
2014-04-18 09:43:32 +01:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-27 15:32:58 -07:00
|
|
|
|
2009-09-03 21:45:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-10-26 14:21:51 -07:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
2010-10-26 14:21:51 -07:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
|
|
|
|
|
2010-10-26 14:21:51 -07:00
|
|
|
|
ARM: 8180/1: mm: implement no-highmem fast path in kmap_atomic_pfn()
Since CONFIG_HIGHMEM got enabled on ARMv5 Kirkwood, we have noticed a
very significant drop in networking performance. The test were
conducted on an OpenBlocks A7 board. Without this patch, the outgoing
performance measured with iperf are:
- highmem OFF, TSO OFF 544 Mbit/s
- highmem OFF, TSO ON 942 Mbit/s
- highmem ON, TSO OFF 306 Mbit/s
- highmem ON, TSO ON 246 Mbit/s
On this Kirkwood platform, the L2 cache is a Feroceon cache, and with
this cache, all the range operations have to be done on virtual
addresses and not physical addresses. Therefore, whenever
CONFIG_HIGHMEM is enabled, the cache maintenance operations call
kmap_atomic_pfn() and kunmap_atomic().
However, kmap_atomic_pfn() does not implement the same fast path for
non-highmem pages as the one implemented in kmap_atomic(), and this is
one of the reason for the performance drop. While this patch does not
fully restore the performances, it clearly improves them a lot:
without patch with patch
- highmem ON, TSO OFF 306 Mbit/s 387 Mbit/s
- highmem ON, TSO ON 246 Mbit/s 434 Mbit/s
We're still far from the !CONFIG_HIGHMEM performances, but it does
improve a bit the situation.
Thanks a lot to Ezequiel Garcia and Gregory Clement for all the
testing work around this topic.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2014-10-20 19:42:18 +01:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
|
|
|
|
|
ARM: 8180/1: mm: implement no-highmem fast path in kmap_atomic_pfn()
Since CONFIG_HIGHMEM got enabled on ARMv5 Kirkwood, we have noticed a
very significant drop in networking performance. The test were
conducted on an OpenBlocks A7 board. Without this patch, the outgoing
performance measured with iperf are:
- highmem OFF, TSO OFF 544 Mbit/s
- highmem OFF, TSO ON 942 Mbit/s
- highmem ON, TSO OFF 306 Mbit/s
- highmem ON, TSO ON 246 Mbit/s
On this Kirkwood platform, the L2 cache is a Feroceon cache, and with
this cache, all the range operations have to be done on virtual
addresses and not physical addresses. Therefore, whenever
CONFIG_HIGHMEM is enabled, the cache maintenance operations call
kmap_atomic_pfn() and kunmap_atomic().
However, kmap_atomic_pfn() does not implement the same fast path for
non-highmem pages as the one implemented in kmap_atomic(), and this is
one of the reason for the performance drop. While this patch does not
fully restore the performances, it clearly improves them a lot:
without patch with patch
- highmem ON, TSO OFF 306 Mbit/s 387 Mbit/s
- highmem ON, TSO ON 246 Mbit/s 434 Mbit/s
We're still far from the !CONFIG_HIGHMEM performances, but it does
improve a bit the situation.
Thanks a lot to Ezequiel Garcia and Gregory Clement for all the
testing work around this topic.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2014-10-20 19:42:18 +01:00
|
|
|
|
|
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
2010-10-26 14:21:51 -07:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
2014-04-18 09:27:01 +01:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
2014-07-02 02:01:15 -05:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
2014-04-18 09:43:32 +01:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-04-18 09:43:32 +01:00
|
|
|
|
2008-09-15 16:44:55 -04:00
|
|
|
|