From patchwork Tue May 30 08:24:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SsO8cmdlbiBHcm/Dnw==?= X-Patchwork-Id: 13259424 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2CBF9C77B7A for ; Tue, 30 May 2023 08:24:55 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.540773.842730 (Exim 4.92) (envelope-from ) id 1q3uec-0003kB-Kr; Tue, 30 May 2023 08:24:30 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 540773.842730; Tue, 30 May 2023 08:24:30 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q3uec-0003k4-IF; Tue, 30 May 2023 08:24:30 +0000 Received: by outflank-mailman (input) for mailman id 540773; Tue, 30 May 2023 08:24:29 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q3ueb-0003jy-Ko for xen-devel@lists.xenproject.org; Tue, 30 May 2023 08:24:29 +0000 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 63c3b5fe-fec3-11ed-8611-37d641c3527e; Tue, 30 May 2023 10:24:26 +0200 (CEST) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id A7BCC21A59; Tue, 30 May 2023 08:24:26 +0000 (UTC) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 64CC91342F; Tue, 30 May 2023 08:24:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id W1Y4F7qydWQAEAAAGKfGzw (envelope-from ); Tue, 30 May 2023 08:24:26 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 63c3b5fe-fec3-11ed-8611-37d641c3527e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1685435066; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=OJ89+jr0EtFeuiyfFiZWQHjzc5XdEw3eDryL9bo7Zkg=; b=s6Pt85Vd8/ZQxOAeLDFjZLpJkBzV1uNBB70sY81G2N785oa7HHv3yJk32WSfVXqb/jD9gT WRSLf/LFL7cFhwdT/mjzvTj2kUKBuVKfDPitp4wR42KTnYR28VmUtzunutctvNXy5JBepk mOzd54SHmdzkgtgSKcknpPuqjNRlm5A= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Wei Liu , Julien Grall , Anthony PERARD , Andrew Cooper , George Dunlap , Jan Beulich , Stefano Stabellini Subject: [PATCH v6 00/14] tools/xenstore: rework internal accounting Date: Tue, 30 May 2023 10:24:10 +0200 Message-Id: <20230530082424.32126-1-jgross@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 This series reworks the Xenstore internal accounting to use a uniform generic framework. It is adding some additional useful diagnostic information, like accounting trace and max. per-domain and global quota values seen. Changes in V2: - added patch 1 (leftover from previous series) - rebase Changes in V3: - addressed comments Changes in V4: - fixed patch 3 Changes in V5: - addressed comments Changes in V6: - addressed comments Juergen Gross (14): tools/xenstore: take transaction internal nodes into account for quota tools/xenstore: manage per-transaction domain accounting data in an array tools/xenstore: introduce accounting data array for per-domain values tools/xenstore: add framework to commit accounting data on success only tools/xenstore: use accounting buffering for node accounting tools/xenstore: add current connection to domain_memory_add() parameters tools/xenstore: use accounting data array for per-domain values tools/xenstore: add accounting trace support tools/xenstore: add TDB access trace support tools/xenstore: switch transaction accounting to generic accounting tools/xenstore: remember global and per domain max accounting values tools/xenstore: use generic accounting for remaining quotas tools/xenstore: switch get_optval_int() to get_optval_uint() tools/xenstore: switch quota management to be table based docs/misc/xenstore.txt | 5 +- tools/xenstore/xenstored_control.c | 65 ++-- tools/xenstore/xenstored_core.c | 185 ++++++----- tools/xenstore/xenstored_core.h | 24 +- tools/xenstore/xenstored_domain.c | 434 ++++++++++++++++++------- tools/xenstore/xenstored_domain.h | 59 +++- tools/xenstore/xenstored_transaction.c | 25 +- tools/xenstore/xenstored_watch.c | 15 +- 8 files changed, 532 insertions(+), 280 deletions(-)