All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] reduce oxenstored quota processing overhead under load
@ 2024-01-31 10:52 Edwin Török
  2024-01-31 10:52 ` [PATCH v1 1/2] oxenstored: use Map instead of Hashtbl for quotas Edwin Török
  2024-01-31 10:52 ` [PATCH v1 2/2] oxenstored: make Quota.t pure Edwin Török
  0 siblings, 2 replies; 7+ messages in thread
From: Edwin Török @ 2024-01-31 10:52 UTC (permalink / raw)
  To: xen-devel
  Cc: Edwin Török, Christian Lindig, David Scott, Wei Liu,
	Anthony PERARD

A recent stress test with 1000 VMs has shown that oxenstored spends ~40% of time in Quota.copy,
even when processing read-only xenstore commands.
Use an immutable data structure instead.

I have tested this in the gitlab CI here: https://gitlab.com/xen-project/people/edwintorok/xen/-/pipelines/1158302827
For convenience the changes in this (and the other series I sent out) are also available as a git repository:
https://gitlab.com/xen-project/people/edwintorok/xen/-/compare/private%2Fedvint%2Fdune1x...private%2Fedvint%2Fno-hashtbl-dev?from_project_id=47263871&straight=false

I haven't yet measured the speedup, but thought to send out the patch for review early.

Edwin Török (2):
  oxenstored: use Map instead of Hashtbl for quotas
  oxenstored: make Quota.t pure

 tools/ocaml/xenstored/quota.ml | 65 ++++++++++++++++++----------------
 tools/ocaml/xenstored/store.ml | 17 +++++----
 2 files changed, 44 insertions(+), 38 deletions(-)

-- 
2.43.0



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

end of thread, other threads:[~2024-02-23 12:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-31 10:52 [PATCH v1 0/2] reduce oxenstored quota processing overhead under load Edwin Török
2024-01-31 10:52 ` [PATCH v1 1/2] oxenstored: use Map instead of Hashtbl for quotas Edwin Török
2024-01-31 10:52 ` [PATCH v1 2/2] oxenstored: make Quota.t pure Edwin Török
2024-01-31 11:17   ` Christian Lindig
2024-01-31 16:27     ` Edwin Torok
2024-02-23 11:35       ` Edwin Torok
2024-02-23 12:06         ` Andrew Cooper

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.