[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xentrace buffer size, maxcpus and online cpus


  • To: Olaf Hering <olaf@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 30 May 2023 10:41:07 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cRa9BPYrmmiPhwNLlH5ynl6mhJUAmPhIm+HoXb8+MWU=; b=T/f1C5wTGbmtUOUsXJq0LzH4zOMGfHJUmCz07j30+vZI9Q4N6YpACkSFub0XXckpAI5Ikbc9QNODW1BJDMOrrz58AWfg+widKEHWXIxpJrYkx79K+x+Il3Ipfx8vFNFDYEEBxb0/ZpUb8N8dthafQbwi7CIhAx+ubYOt0qEO4YVXPVK5MTebxbJsdAXYjanNC3lUbARwzeRVg9kvad8YXU23Ju5Vi51EjE72PyUd9kVLGQod5GMgC4B83KvpTc9+iQhqtyokVKLYW8NKJZ3KLXaxnH1Z8sPlKHOLApPgmo7Bn+FCW2JujrpAYm39Pe2iZANDc4voWODRcfeXWUT6BQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mn5j6fbedzDhAuwKeggBHM9dkUQeSn1z3bfBfPLhwXl6wuAyOA4WHndpqtPxbC1SenSmQfOvenWGTV89jkzqXrvMZjpnbkWB2TUB9BkpaCAP2gbeEE4fwYqO+2X55h4pjd3ZEfQFupTSy6M2zLJ08yvfha3nLUlD6zbKgFAPQVtjPOSuMyzrhfzMIl+jFjnO1qbNXFiHkqfsjH1Omz42mXCYkLU0aCStvns8YVwOyaGCtthnyU7NydbYshfzX2P//OU5OMsk4Lc06w1RjOhtUKFaOKW4OB60rrSZvd0lUPudE9JuD2sOcxN5rbF7YVjgqc0nFHTm0ni16p98aAWubA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 30 May 2023 08:41:29 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 30.05.2023 09:58, Olaf Hering wrote:
> While looking again through calculate_tbuf_size after a very long time,
> I was wondering why the code uses nr_cpu_ids instead of num_online_cpus.
> In case Xen was booted with maxcpus=N, would it be safe to use N as
> upper limit? I think this would increase the per-cpu buffer size for
> each active pcpu, and as a result more events could be captured.

Using this N would be correct afaict, but that N isn't num_online_cpus().
CPUs may have been offlined by the time trace buffers are initialized, so
without looking too closely I think it would be num_present_cpus() that
you're after.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.