All of lore.kernel.org
 help / color / mirror / Atom feed
* poor read performance on rbd+LVM, LVM overload
@ 2013-10-16 14:46 ` Ugis
  0 siblings, 0 replies; 36+ messages in thread
From: Ugis @ 2013-10-16 14:46 UTC (permalink / raw)
  To: linux-lvm-H+wXaHxf7aLQT0dZR+AlfA,
	ceph-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	ceph-users-Qp0mS5GaXlQ@public.gmane.org

Hello ceph&LVM communities!

I noticed very slow reads from xfs mount that is on ceph
client(rbd+gpt partition+LVM PV + xfs on LE)
To find a cause I created another rbd in the same pool, formatted it
straight away with xfs, mounted.

Write performance for both xfs mounts is similar ~12MB/s

reads with "dd if=/mnt/somefile bs=1M | pv | dd of=/dev/null" as follows:
with LVM ~4MB/s
pure xfs ~30MB/s

Watched performance while doing reads with atop. In LVM case atop
shows LVM overloaded:
LVM | s-LV_backups  | busy     95% |  read   21515 | write      0  |
KiB/r      4 |               | KiB/w      0 |  MBr/s   4.20 | MBw/s
0.00  | avq     1.00 |  avio 0.85 ms |

client kernel 3.10.10
ceph version 0.67.4

My considerations:
I have expanded rbd under LVM couple of times(accordingly expanding
gpt partition, PV,VG,LV, xfs afterwards), but that should have no
impact on performance(tested clean rbd+LVM, same read performance as
for expanded one).

As with device-mapper, after LVM is initialized it is just a small
table with LE->PE  mapping that should reside in close CPU cache.
I am guessing this could be related to old CPU used, probably caching
near CPU does not work well(I tested also local HDDs with/without LVM
and got read speed ~13MB/s vs 46MB/s with atop showing same overload
in  LVM case).

What could make so great difference when LVM is used and what/how to
tune? As write performance does not differ, DM extent lookup should
not be lagging, where is the trick?

CPU used:
# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Xeon(TM) CPU 3.20GHz
stepping        : 10
microcode       : 0x2
cpu MHz         : 3200.077
cache size      : 2048 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr ss
                                                       e sse2 ss ht tm
pbe syscall nx lm constant_tsc pebs bts nopl pni dtes64 monitor ds_cpl
cid cx16 xtpr lahf_lm
bogomips        : 6400.15
clflush size    : 64
cache_alignment : 128
address sizes   : 36 bits physical, 48 bits virtual
power management:

Br,
Ugis

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2013-10-30 14:53 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-16 14:46 poor read performance on rbd+LVM, LVM overload Ugis
2013-10-16 14:46 ` [linux-lvm] " Ugis
2013-10-16 16:16 ` Sage Weil
2013-10-16 16:16   ` [linux-lvm] " Sage Weil
     [not found]   ` <alpine.DEB.2.00.1310160914360.22271-vIokxiIdD2AQNTJnQDzGJqxOck334EZe@public.gmane.org>
2013-10-17  9:06     ` David McBride
2013-10-17  9:06       ` [linux-lvm] " David McBride
2013-10-17 15:18   ` Mike Snitzer
2013-10-17 15:18     ` [linux-lvm] " Mike Snitzer
     [not found]     ` <20131017151828.GB28859-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-10-18  7:56       ` Ugis
2013-10-18  7:56         ` [linux-lvm] " Ugis
2013-10-19  0:01         ` Sage Weil
2013-10-19  0:01           ` [linux-lvm] " Sage Weil
     [not found]           ` <alpine.DEB.2.00.1310181657151.19763-vIokxiIdD2AQNTJnQDzGJqxOck334EZe@public.gmane.org>
2013-10-20 15:18             ` Ugis
2013-10-20 15:18               ` [linux-lvm] " Ugis
     [not found]               ` <CAE63xUO4ZrzObMFeQ=FXGFnqpwWsjCiiDr2_VhOt91h=djofYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-10-20 18:21                 ` Josh Durgin
2013-10-20 18:21                   ` [linux-lvm] [ceph-users] " Josh Durgin
2013-10-21  3:58                 ` Sage Weil
2013-10-21  3:58                   ` [linux-lvm] " Sage Weil
2013-10-21 14:11                   ` Christoph Hellwig
2013-10-21 14:11                     ` [linux-lvm] " Christoph Hellwig
     [not found]                     ` <20131021141147.GA30189-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2013-10-21 15:01                       ` Mike Snitzer
2013-10-21 15:01                         ` [linux-lvm] " Mike Snitzer
     [not found]                         ` <20131021150129.GA28099-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-10-21 15:06                           ` Mike Snitzer
2013-10-21 15:06                             ` [linux-lvm] " Mike Snitzer
2013-10-21 16:02                         ` Sage Weil
2013-10-21 16:02                           ` [linux-lvm] " Sage Weil
     [not found]                           ` <alpine.DEB.2.00.1310210853140.29488-vIokxiIdD2AQNTJnQDzGJqxOck334EZe@public.gmane.org>
2013-10-21 17:48                             ` Mike Snitzer
2013-10-21 17:48                               ` [linux-lvm] " Mike Snitzer
     [not found]                               ` <20131021174850.GA29416-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-10-21 18:05                                 ` Sage Weil
2013-10-21 18:05                                   ` [linux-lvm] " Sage Weil
2013-10-21 18:06                         ` Christoph Hellwig
2013-10-21 18:06                           ` [linux-lvm] " Christoph Hellwig
     [not found]                           ` <20131021180616.GA7196-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2013-10-21 18:27                             ` Mike Snitzer
2013-10-21 18:27                               ` [linux-lvm] " Mike Snitzer
2013-10-30 14:53                               ` Ugis
2013-10-30 14:53                                 ` [linux-lvm] " Ugis

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.