From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C0CC645E21; Tue, 3 Dec 2024 23:00:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9409040261; Tue, 3 Dec 2024 23:00:00 +0100 (CET) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mails.dpdk.org (Postfix) with ESMTP id 4D47B4025D for ; Tue, 3 Dec 2024 22:59:59 +0100 (CET) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-215bebfba73so12839475ad.1 for ; Tue, 03 Dec 2024 13:59:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1733263198; x=1733867998; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=3T4tR9KDkAes+rQKNl56FK0aIZ3+UnR08rG84LZvGdo=; b=Ze/Wnvj79Gi8cXwPA6ku7IgSbO+dYCGx6klhW8ZWGI9kLRWyDAbqbTl8gYZqWf/7HE d/5JsGSODN+e/uk0M2UGSd6Gt0sjUP09SZF/tbRaYkQrvVfIAAcbmnB40ZZ2K6k6igtW avTE4lisgoyxfbTWjOvI5Ew/dJP9tceDDIvrV+r8f9ebiPHVY1PUAawVPqhan5TufiiP QZnrzzW1IKlW8w3TPdOCAQC6lRIQpfjv39La5k5EFog/eVnWJb4kg9w3NL9zQdDozrAv qNwggcNgHaXOTtO5fqAg5Din2lIFIAbCyYMFFipiOZLJmeuEyKVNA4rBE0f+OAillZ8w gWyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733263198; x=1733867998; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3T4tR9KDkAes+rQKNl56FK0aIZ3+UnR08rG84LZvGdo=; b=SdBDYAd+iX8q+BiupaqypeGe4gMPer4bm6cf537O95eA/x7EWvuVQ4lo3GYXxZicmM 9bezl+6J+b6Xc4kXThd58RDFfndizXLJOhzSsXXLQ5bo1vxYWA+lqpavN8mNvRHuN4Qt IMpu4HngWNM0edHsWQVthdt9K3gVZkPa5xuxv5sUJkUDuQ/wu3IfMDmYtZDSU87yM99L fJwj1XiljqgB84AiZCRzCknR5qtunxXDqF9fx+5UbVQbBBW/W2eazK5ouM5Rn8+sOsAu ffQCKWS6XCdwWtdDfwA5DNZyDxtbP4rHgI4ylIbNEfxRYKHW4ZJ9SbIMa/cRDFu3bEuw MAiw== X-Forwarded-Encrypted: i=1; AJvYcCW2hvT3THMQzjcOn3C4XdHdL6b3AYDJxX/XVuP23jz3QYHQUPhneYbyDEhRCUJ34rj6n/E=@dpdk.org X-Gm-Message-State: AOJu0YwF5DFr2Ro8BlXSH8pEt12eYCcTWs76C33sEF5WRl/d7y7IXpGA mSrZNBD5hmn6h272WX7euL0Fh3yXp2hMFGbMUXFW4caQ3284sJP5LG2GsXTsQe0= X-Gm-Gg: ASbGncsB/6ByMC3uHWq1gsDYGibNjNuGy2/rIxRlY6m03yo6/vBwTl9hEh2ofNX/2Gm AUZNl5/ZM59UbRKn6QRAJSpUolx7OqBJ8L/bWSy9xMNbXzILxJ0EwWzJ+oUErLsQDQXjRSv/+po DITv2sTdrh9PlU7e0L9ysembTJESmbU2G/2uu8bpEIH7MG7AmKaBuvZ/ZVHSZPrtWAbYVmT5cp9 rKYR4juVoaLpWk4yLb9sXTREcLBKV42YpNZfkkpikYAg+UJaa/46Yo2OxCVELDu60xnFxMSD2kp ncf9RX5Ov2TlCxivMI69cj6FzDo= X-Google-Smtp-Source: AGHT+IHH1/55p5tB8423h3rzfJLMuXflcsJaffBvX69ZbZdITPBN0tOnAbCkJ3uHoaZ5Z37izmEZXA== X-Received: by 2002:a17:902:cec6:b0:215:a172:5fb9 with SMTP id d9443c01a7336-215bd14189fmr64702455ad.48.1733263198445; Tue, 03 Dec 2024 13:59:58 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21598f3281fsm38391035ad.279.2024.12.03.13.59.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Dec 2024 13:59:58 -0800 (PST) Date: Tue, 3 Dec 2024 13:59:52 -0800 From: Stephen Hemminger To: Tomasz Duszynski Cc: , , , , , , , , , , Subject: Re: [PATCH v16 0/4] add support for self monitoring Message-ID: <20241203135952.332194b0@hermes.local> In-Reply-To: <20241118073706.3129423-1-tduszynski@marvell.com> References: <20241025085414.3412068-1-tduszynski@marvell.com> <20241118073706.3129423-1-tduszynski@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, 18 Nov 2024 08:37:02 +0100 Tomasz Duszynski wrote: > This series adds self monitoring support i.e allows to configure and > read performance measurement unit (PMU) counters in runtime without > using perf utility. This has certain advantages when application runs on > isolated cores running dedicated tasks. > > Events can be read directly using rte_pmu_read() or using dedicated > tracepoint rte_eal_trace_pmu_read(). The latter will cause events to be > stored inside CTF file. > > By design, all enabled events are grouped together and the same group > is attached to lcores that use self monitoring funtionality. > > Events are enabled by names, which need to be read from standard > location under sysfs i.e > > /sys/bus/event_source/devices/PMU/events > > where PMU is a core pmu i.e one measuring cpu events. As of today > raw events are not supported. It would be good to have a working useful example of what and how these could be used. Given that most DPDK applications are poll mode, it is not clear how these could be useful. There is a lot of work that perf does to go from the raw counters to useful data, and without that exposing the raw stuff doesn't seem that useful