BUG: kvm crashing in void librbd::AioCompletion::complete_request
Hello,
while benchmarking the new v2 rbd format i saw several crashes of KVM. First i thought this was kernel related but i was just happening faster with one kernel than the other.
The KVM crash / exit looks like this:
librbd/AioCompletion.cc: In function 'void librbd::AioCompletion::complete_request(CephContext*, ssize_t)' thread 7f73db67c780 time 2012-11-04 14:59:44.997009 librbd/AioCompletion.cc: 43: FAILED assert(bl.length() == read_buf_len)
ceph version 0.53-585-ga01b112 (a01b112d71a0b6a1bb206d53867d13536d17bbf6)
1: (librbd::AioCompletion::complete_request(CephContext*, long)+0xa89)
[0x7f73d9337319]
2: (librbd::C_AioRead::finish(int)+0x174) [0x7f73d93374e4]
3: (Context::complete(int)+0xa) [0x7f73d933796a]
4: (librbd::C_CacheRead::finish(int)+0xe) [0x7f73d933683e]
5: (Context::complete(int)+0xa) [0x7f73d933796a]
6: (librbd::ImageCtx::aio_read_from_cache(object_t,
ceph::buffer::list*, unsigned long, unsigned long, Context*)+0x3a0) [0x7f73d9347bd0]
7: (librbd::aio_read(librbd::ImageCtx*, std::vector<std::pair<unsigned
long, unsigned long>, std::allocator<std::pair<unsigned long, unsigned long> > > const&, char*, ceph::buffer::list*, librbd::AioCompletion*)+0x765) [0x7f73d9354995]
8: (librbd::aio_read(librbd::ImageCtx*, unsigned long, unsigned long,
char*, ceph::buffer::list*, librbd::AioCompletion*)+0xa2) [0x7f73d9354f92]
9: (()+0x9f2de) [0x7f73db73d2de]
10: (()+0x9f490) [0x7f73db73d490]
11: (()+0x83c45) [0x7f73db721c45]
12: (()+0x850ea) [0x7f73db7230ea]
NOTE: a copy of the executable, or objdump -rdS <executable> is
needed to interpret this.
terminate called after throwing an instance of 'ceph::FailedAssertion'
Stefan
Quoted 5 lines · Stefan Priebe
Hello,
while benchmarking the new v2 rbd format i saw several crashes of KVM. First i thought this was kernel related but i was just happening faster with one kernel than the other.
Can you try the wip-rbd-read branch? It has a bunch of fixes that aren't in master yet. I haven't seen this specific crash (I don't think), but I was reliable hitting other issues with master that wip-rbd-read reslves.
Alternatively, you could cherry-pick b1d866efbdf7e8a7bc083b1f3ea56f24e10c8fcd, which I'm guessing is your problem.
Thanks!
sage
Quoted 36 lines
The KVM crash / exit looks like this:
librbd/AioCompletion.cc: In function 'voidlibrbd::AioCompletion::complete_request(CephContext*, ssize_t)' thread7f73db67c780time 2012-11-04 14:59:44.997009 librbd/AioCompletion.cc: 43: FAILEDassert(bl.length() == read_buf_len)
ceph version 0.53-585-ga01b112 (a01b112d71a0b6a1bb206d53867d13536d17bbf6) 1: (librbd::AioCompletion::complete_request(CephContext*, long)+0xa89)
[0x7f73d9337319]
2: (librbd::C_AioRead::finish(int)+0x174) [0x7f73d93374e4]
3: (Context::complete(int)+0xa) [0x7f73d933796a]
4: (librbd::C_CacheRead::finish(int)+0xe) [0x7f73d933683e]
5: (Context::complete(int)+0xa) [0x7f73d933796a]
6: (librbd::ImageCtx::aio_read_from_cache(object_t, ceph::buffer::list*,
unsigned long, unsigned long, Context*)+0x3a0) [0x7f73d9347bd0]
7: (librbd::aio_read(librbd::ImageCtx*, std::vector<std::pair<unsigned long,
unsigned long>, std::allocator<std::pair<unsigned long, unsigned long> > > const&, char*, ceph::buffer::list*, librbd::AioCompletion*)+0x765) [0x7f73d9354995]
8: (librbd::aio_read(librbd::ImageCtx*, unsigned long, unsigned long, char*,
ceph::buffer::list*, librbd::AioCompletion*)+0xa2) [0x7f73d9354f92]
9: (()+0x9f2de) [0x7f73db73d2de]
10: (()+0x9f490) [0x7f73db73d490]
11: (()+0x83c45) [0x7f73db721c45]
12: (()+0x850ea) [0x7f73db7230ea]
NOTE: a copy of the executable, orobjdump -rdS <executable>is needed to
interpret this.
terminate called after throwing an instance of 'ceph::FailedAssertion'Stefan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Can i merge wip-rbd-read into master?
Stefan
Am 04.11.2012 15:06, schrieb Sage Weil:
Quoted 55 lines · Stefan Priebe
Quoted 5 lines
Hello,
while benchmarking the new v2 rbd format i saw several crashes of KVM. First i thought this was kernel related but i was just happening faster with one kernel than the other.
Can you try the wip-rbd-read branch? It has a bunch of fixes that aren't in master yet. I haven't seen this specific crash (I don't think), but I was reliable hitting other issues with master that wip-rbd-read reslves.
Alternatively, you could cherry-pick
b1d866efbdf7e8a7bc083b1f3ea56f24e10c8fcd, which I'm guessing is your problem.Thanks!
sageQuoted 36 lines
The KVM crash / exit looks like this:
librbd/AioCompletion.cc: In function 'voidlibrbd::AioCompletion::complete_request(CephContext*, ssize_t)' thread7f73db67c780time 2012-11-04 14:59:44.997009 librbd/AioCompletion.cc: 43: FAILEDassert(bl.length() == read_buf_len)
ceph version 0.53-585-ga01b112 (a01b112d71a0b6a1bb206d53867d13536d17bbf6) 1: (librbd::AioCompletion::complete_request(CephContext*, long)+0xa89)
[0x7f73d9337319]
2: (librbd::C_AioRead::finish(int)+0x174) [0x7f73d93374e4]
3: (Context::complete(int)+0xa) [0x7f73d933796a]
4: (librbd::C_CacheRead::finish(int)+0xe) [0x7f73d933683e]
5: (Context::complete(int)+0xa) [0x7f73d933796a]
6: (librbd::ImageCtx::aio_read_from_cache(object_t, ceph::buffer::list*,
unsigned long, unsigned long, Context*)+0x3a0) [0x7f73d9347bd0]
7: (librbd::aio_read(librbd::ImageCtx*, std::vector<std::pair<unsigned long,
unsigned long>, std::allocator<std::pair<unsigned long, unsigned long> > > const&, char*, ceph::buffer::list*, librbd::AioCompletion*)+0x765) [0x7f73d9354995]
8: (librbd::aio_read(librbd::ImageCtx*, unsigned long, unsigned long, char*,
ceph::buffer::list*, librbd::AioCompletion*)+0xa2) [0x7f73d9354f92]
9: (()+0x9f2de) [0x7f73db73d2de]
10: (()+0x9f490) [0x7f73db73d490]
11: (()+0x83c45) [0x7f73db721c45]
12: (()+0x850ea) [0x7f73db7230ea]
NOTE: a copy of the executable, orobjdump -rdS <executable>is needed to
interpret this.
terminate called after throwing an instance of 'ceph::FailedAssertion'Stefan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line · Stefan Priebe
Can i merge wip-rbd-read into master?
Yeah. I'm going to do a bit more testing first before I do it, but it should apply cleanly. Hopefully later today.
sage
Quoted 65 lines
Stefan
Am 04.11.2012 15:06, schrieb Sage Weil:Quoted 60 lines · Stefan Priebe
Quoted 6 lines
Hello,
while benchmarking the new v2 rbd format i saw several crashes of KVM. First i
thought this was kernel related but i was just happening faster with one kernel than the other.Can you try the wip-rbd-read branch? It has a bunch of fixes that aren't in master yet. I haven't seen this specific crash (I don't think), but I was reliable hitting other issues with master that wip-rbd-read reslves.
Alternatively, you could cherry-pick
b1d866efbdf7e8a7bc083b1f3ea56f24e10c8fcd, which I'm guessing is your problem.Thanks!
sageQuoted 40 lines
The KVM crash / exit looks like this:
librbd/AioCompletion.cc: In function 'voidlibrbd::AioCompletion::complete_request(CephContext*, ssize_t)' thread7f73db67c780time 2012-11-04 14:59:44.997009 librbd/AioCompletion.cc: 43: FAILEDassert(bl.length() == read_buf_len)
ceph version 0.53-585-ga01b112
(a01b112d71a0b6a1bb206d53867d13536d17bbf6)
1: (librbd::AioCompletion::complete_request(CephContext*, long)+0xa89)
[0x7f73d9337319]
2: (librbd::C_AioRead::finish(int)+0x174) [0x7f73d93374e4] 3: (Context::complete(int)+0xa) [0x7f73d933796a]
4: (librbd::C_CacheRead::finish(int)+0xe) [0x7f73d933683e] 5: (Context::complete(int)+0xa) [0x7f73d933796a]
6: (librbd::ImageCtx::aio_read_from_cache(object_t, ceph::buffer::list*,
unsigned long, unsigned long, Context*)+0x3a0) [0x7f73d9347bd0]
7: (librbd::aio_read(librbd::ImageCtx*, std::vector<std::pair<unsigned
long,
unsigned long>, std::allocator<std::pair<unsigned long, unsigned long> > > const&, char*, ceph::buffer::list*, librbd::AioCompletion*)+0x765) [0x7f73d9354995]
8: (librbd::aio_read(librbd::ImageCtx*, unsigned long, unsigned long,
char*,
ceph::buffer::list*, librbd::AioCompletion*)+0xa2) [0x7f73d9354f92]
9: (()+0x9f2de) [0x7f73db73d2de]
10: (()+0x9f490) [0x7f73db73d490]
11: (()+0x83c45) [0x7f73db721c45]
12: (()+0x850ea) [0x7f73db7230ea]
NOTE: a copy of the executable, orobjdump -rdS <executable>is needed
to
interpret this.
terminate called after throwing an instance of 'ceph::FailedAssertion'Stefan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Am 04.11.2012 15:12, schrieb Sage Weil:
Quoted 5 lines · Stefan Priebe
Quoted 1 line
Can i merge wip-rbd-read into master?
Yeah. I'm going to do a bit more testing first before I do it, but it should apply cleanly. Hopefully later today.
Any other branches to merge locally while benchmarking / testing?
Greets,
Stefan
Quoted 8 lines · Stefan Priebe
Am 04.11.2012 15:12, schrieb Sage Weil:
Quoted 5 lines · Stefan Priebe
Quoted 1 line
Can i merge wip-rbd-read into master?
Yeah. I'm going to do a bit more testing first before I do it, but it should apply cleanly. Hopefully later today.
Any other branches to merge locally while benchmarking / testing?
Nope, although you get the latest wip-rbd-read (I fixed an issue with glibc's random_r sucking).
sage
Am 04.11.2012 20:19, schrieb Sage Weil:
Quoted 5 lines · Stefan Priebe
Quoted 4 lines
Am 04.11.2012 15:12, schrieb Sage Weil:
Quoted 3 lines · Stefan Priebe
Quoted 1 line
Can i merge wip-rbd-read into master?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Yeah. I'm going to do a bit more testing first before I do it, but it should apply cleanly. Hopefully later today.
Any other branches to merge locally while benchmarking / testing?
Nope, although you get the latest wip-rbd-read (I fixed an issue with glibc's
random_rsucking).
Did i get you wrong? There's no commit from sage today?
https://github.com/ceph/ceph/commits/wip-rbd-read
Stefan
Quoted 9 lines · Stefan Priebe
Am 04.11.2012 20:19, schrieb Sage Weil:
Quoted 8 lines · Stefan Priebe
Quoted 7 lines
Am 04.11.2012 15:12, schrieb Sage Weil:
Quoted 5 lines · Stefan Priebe
Quoted 1 line
Can i merge wip-rbd-read into master?
Yeah. I'm going to do a bit more testing first before I do it, but it should apply cleanly. Hopefully later today.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Any other branches to merge locally while benchmarking / testing?
Nope, although you get the latest wip-rbd-read (I fixed an issue with glibc's
random_rsucking).Did i get you wrong? There's no commit from sage today?
https://github.com/ceph/ceph/commits/wip-rbd-read
That's the right one.
(There was briefly some other stuff in wip-rbd-read earlier today that was broken.)
sage
Am 04.11.2012 15:12, schrieb Sage Weil:
Quoted 5 lines · Stefan Priebe
Quoted 1 line
Can i merge wip-rbd-read into master?
Yeah. I'm going to do a bit more testing first before I do it, but it should apply cleanly. Hopefully later today.
Thanks - seems to be fixed with wip-rbd-read but i have a memory leak now.
kvm process raises and raises and raises which each new test around 5GB of memory. Should i write a new mail?
Greets,
Stefan
Am 05.11.2012 20:33, schrieb Stefan Priebe:
Quoted 11 lines
Am 04.11.2012 15:12, schrieb Sage Weil:
Quoted 5 lines · Stefan Priebe
Quoted 1 line
Can i merge wip-rbd-read into master?
Yeah. I'm going to do a bit more testing first before I do it, but it should apply cleanly. Hopefully later today.
Thanks - seems to be fixed with wip-rbd-read but i have a memory leak now.
kvm process raises and raises and raises which each new test around 5GB of memory. Should i write a new mail?
Works fine with vanilla origin/master. So it must be in wip-rbd-read.
Stefan
Quoted 7 lines · Stefan Priebe
Am 04.11.2012 15:12, schrieb Sage Weil:
Quoted 6 lines · Stefan Priebe
Quoted 2 lines
Can i merge wip-rbd-read into master?
Quoted 8 lines
Quoted 2 lines
Yeah. I'm going to do a bit more testing first before I do it, but it should apply cleanly. Hopefully later today.
Thanks - seems to be fixed with wip-rbd-read but i have a memory leak now.
kvm process raises and raises and raises which each new test around 5GB of memory. Should i write a new mail?
Do you use qemu 1.2.0? It has a memory leak, at least with rbd backend, but I didn`t profiled it yet, so it may be something generic :)
Quoted 4 lines
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Am 05.11.2012 21:20, schrieb Andrey Korolyov:
Quoted 12 lines · Stefan Priebe
Quoted 11 lines
Am 04.11.2012 15:12, schrieb Sage Weil:
Quoted 8 lines · Stefan Priebe
Quoted 2 lines
Can i merge wip-rbd-read into master?
Yeah. I'm going to do a bit more testing first before I do it, but it should apply cleanly. Hopefully later today.
Quoted 8 lines
Quoted 4 lines
Thanks - seems to be fixed with wip-rbd-read but i have a memory leak now.
kvm process raises and raises and raises which each new test around 5GB of memory. Should i write a new mail?
Do you use qemu 1.2.0? It has a memory leak, at least with rbd backend, but I didn`t profiled it yet, so it may be something generic :)
Yes i'm using kvm-qemu 1.2. But i dought that in my case it is a qemu problem. Memory usage is constant using ceph git master. When i merge ceph wip-rbd-read into master kvm process raises massivly while reading from disk.
Greets,
Stefan
Am 05.11.2012 20:33, schrieb Stefan Priebe:
Quoted 11 lines
Am 04.11.2012 15:12, schrieb Sage Weil:
Quoted 5 lines · Stefan Priebe
Quoted 1 line
Can i merge wip-rbd-read into master?
Yeah. I'm going to do a bit more testing first before I do it, but it should apply cleanly. Hopefully later today.
Thanks - seems to be fixed with wip-rbd-read but i have a memory leak now.
kvm process raises and raises and raises which each new test around 5GB of memory. Should i write a new mail?
Most mem get used while doing a lot of small reads.
Stefan
Quoted 1 line
Quoted 1 line
Most mem get used while doing a lot of small reads.
I see same problem with my test and wip-rbd-read.
I got also strange fio results, from 5k to 100K iops (increase and increase in time during the bench).
----- Mail original -----
De: "Stefan Priebe" <[email protected]>
À: "Sage Weil" <[email protected]>
Cc: [email protected]
Envoyé: Lundi 5 Novembre 2012 21:43:05
Objet: Re: BUG: kvm crashing in void librbd::AioCompletion::complete_request
Am 05.11.2012 20:33, schrieb Stefan Priebe:
Quoted 11 lines
Am 04.11.2012 15:12, schrieb Sage Weil:
Quoted 5 lines · Stefan Priebe
Quoted 1 line
Can i merge wip-rbd-read into master?
Yeah. I'm going to do a bit more testing first before I do it, but it should apply cleanly. Hopefully later today.
Thanks - seems to be fixed with wip-rbd-read but i have a memory leak now.
kvm process raises and raises and raises which each new test around 5GB of memory. Should i write a new mail?
Most mem get used while doing a lot of small reads.
Stefan
Signature · 7 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Am 06.11.2012 10:07, schrieb Alexandre DERUMIER:
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Most mem get used while doing a lot of small reads.
I see same problem with my test and wip-rbd-read.
I got also strange fio results, from 5k to 100K iops (increase and increase in time during the bench).
Update to latest wip-rbd-read frmo yesterday. Sage fixed the bug but didn't report back.
Stefan