Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753821AbdHKWrb (ORCPT ); Fri, 11 Aug 2017 18:47:31 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:37077 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753627AbdHKWr3 (ORCPT ); Fri, 11 Aug 2017 18:47:29 -0400 MIME-Version: 1.0 In-Reply-To: <1502359259-24966-1-git-send-email-tianyu.lan@intel.com> References: <1502359259-24966-1-git-send-email-tianyu.lan@intel.com> From: Denys Vlasenko Date: Sat, 12 Aug 2017 00:47:07 +0200 Message-ID: Subject: Re: [PATCH] KVM/x86: Increase max vcpu number to 352 To: Lan Tianyu Cc: Paolo Bonzini , rkrcmar@redhat.com, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , X86 ML , KVM list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1059 Lines: 23 On Thu, Aug 10, 2017 at 12:00 PM, Lan Tianyu wrote: > Intel Xeon phi chip will support 352 logical threads. For HPC usage > case, it will create a huge VM with vcpu number as same as host cpus. This > patch is to increase max vcpu number to 352. This number was bumped in the past to 288 to accommodate Knights Landing, but KNL's max designed thread number is actually 304: the on-die interconnect mesh is 6*7, with four cells taken for interconnect and memory controllers, there are 38 CPU cells. Each CPU cell has two cores with shared L2. Each core is SMT4. 38*8 = 304. Intel fuses two cells (or more), so 288 is the largest number of threads on a KNL you can buy, but 304 thread KNLs most probably also exist (however they may be rather rare since they require completely defect-free die). I think it's better if Linux would support those too. What is the design maximum for these new "nominally 352 thread" Xeon Phis which are "nominally 352 thread"? 360? (If the mesh is 7*7 and the same 4 cells are taked for non-CPU needs)