#1 sample message sizes from a distribution

Kapalı
j3tracey tarafından 1 yıl önce kere açıldı · 1 yorum
Justin Tracey 1 yıl önce olarak yorumlandı

So far, to get things up and running, everything has been using fixed message sizes. We should modify the client to instead sample from some configurable distribution. This shouldn't be too difficult, but would entail:

  • adding the parameter to the client config
  • making construct_message take a size parameter or the distribution
  • sampling an int from the distribution and multiplying by a padding constant

For now, I think a single distribution is good enough. In the future, it's possible we should use different distributions for Active and Idle states, or taking into account the sizes of messages sent and received so far.

So far, to get things up and running, everything has been using fixed message sizes. We should modify the client to instead sample from some configurable distribution. This shouldn't be too difficult, but would entail: - adding the parameter to the client config - making [`construct_message`](https://git-crysp.uwaterloo.ca/j3tracey/MGen/src/4212301fce025c537460f289ed96eb91d07bf4ad/src/bin/client.rs#L439) take a size parameter or the distribution - sampling an int from the distribution and multiplying by a padding constant For now, I think a single distribution is good enough. In the future, it's possible we should use different distributions for Active and Idle states, or taking into account the sizes of messages sent and received so far.
Justin Tracey 1 yıl önce olarak yorumlandı
Sahibi

Fixed via a4272b771e

Fixed via a4272b771e
Giriş yap bu konuşmaya katılmak için.
Kilometre Taşı Yok
Atanan Kişi Yok
1 Katılımcı
Yükleniyor...
İptal
Kaydet
Henüz bir içerik yok.