Skip to contentSkip to conversation

Deterministic thrashing

DISCUSSION Loic Dachary 2 participants 4 messages Apr 6, 2014 – Apr 7, 2014

lore
Share & tools
lore
#0 lore raw

Hi Ceph,

It would be nice to have a way to replay the random events injected by stanzas such as

- thrashosds:
chance_pgnum_grow: 2
chance_pgpnum_fix: 1

When a teuthology workload (such as tracker.ceph.com/issues/7914#note-34) crashes once a week and the error is not obvious, it would increase the probability to reproduce the crash. Instead of the "trashosds" we could have something like "recorded-trashosds: trashosd.events" and instead of being random they would happen more deterministically (same number of events and same number of seconds between events ?).

I realize this is non trivial to implement but maybe someone already thought about that and has a better idea ?

Cheers

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#1 lore raw

This would be really nice but there are unfortunately even more hiccups than you've noted here:
1) Thrashing is both time and disk access sensitive, and hardware differs
2) The teuthology thrashing is triggered largely based on PG state events (eg, "all PGs are clean, so restart an OSD")
3) The actual failures tend to involve a combination of PG state and inbound client operations, and I can't think of any realistic way to coordinate those.

Those problems look technically insurmountable to me, but maybe I'm missing something?
-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 8 lines · Loic Dachary

Hi Ceph,

It would be nice to have a way to replay the random events injected by stanzas such as

- thrashosds:
chance_pgnum_grow: 2
chance_pgpnum_fix: 1

Quoted 9 lines

When a teuthology workload (such as tracker.ceph.com/issues/7914#note-34) crashes once a week and the error is not obvious, it would increase the probability to reproduce the crash. Instead of the "trashosds" we could have something like "recorded-trashosds: trashosd.events" and instead of being random they would happen more deterministically (same number of events and same number of seconds between events ?).

I realize this is non trivial to implement but maybe someone already thought about that and has a better idea ?

Cheers

--
Loïc Dachary, Artisan Logiciel Libre

--
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

#2 lore raw
Quoted 11 lines · Gregory Farnum

This would be really nice but there are unfortunately even more hiccups than you've noted here:
1) Thrashing is both time and disk access sensitive, and hardware differs
2) The teuthology thrashing is triggered largely based on PG state events (eg, "all PGs are clean, so restart an OSD")
3) The actual failures tend to involve a combination of PG state and inbound client operations, and I can't think of any realistic way to coordinate those.

Those problems look technically insurmountable to me, but maybe I'm missing something?

There is no easy way to use the logs / events to significantly reduce the randomness of the workload ? I honestly have no clue ;-)

Cheers

Quoted 22 lines

-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com

Quoted 17 lines · Loic Dachary

Hi Ceph,

It would be nice to have a way to replay the random events injected by stanzas such as

- thrashosds:
chance_pgnum_grow: 2
chance_pgpnum_fix: 1

When a teuthology workload (such as tracker.ceph.com/issues/7914#note-34) crashes once a week and the error is not obvious, it would increase the probability to reproduce the crash. Instead of the "trashosds" we could have something like "recorded-trashosds: trashosd.events" and instead of being random they would happen more deterministically (same number of events and same number of seconds between events ?).

I realize this is non trivial to implement but maybe someone already thought about that and has a better idea ?

Cheers

--
Loïc Dachary, Artisan Logiciel Libre

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#3 lore raw
Quoted 12 lines · Loic Dachary
Quoted 9 lines · Gregory Farnum

This would be really nice but there are unfortunately even more hiccups than you've noted here:
1) Thrashing is both time and disk access sensitive, and hardware differs
2) The teuthology thrashing is triggered largely based on PG state events (eg, "all PGs are clean, so restart an OSD")
3) The actual failures tend to involve a combination of PG state and inbound client operations, and I can't think of any realistic way to coordinate those.

Quoted 4 lines
Quoted 2 lines

Those problems look technically insurmountable to me, but maybe I'm missing something?

There is no easy way to use the logs / events to significantly reduce the randomness of the workload ? I honestly have no clue ;-)

I don't think so, no. :( We'd have to somehow order every event in the system while not losing any of the system race conditions that were previously triggered!
-Greg
Software Engineer #42 @ http://inktank.com | http://ceph.com