Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8304111CB4; Wed, 19 Jul 2023 14:45:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689777926; x=1721313926; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7SVvbrp3j+ma9iJAlbF+fxLpUAe7AS/nENNVytS5+4E=; b=ayJCf3mB5Cd5UMAMJeqmJWZR7iLLBlGnxagHkvW46kxE1hJJcR3hFUJp PS++uX5Q+QXTyfV1jECCX4gW3p5DkRrn9u3XKKk7RoZ5OjAO7/AU2pUWb jhllI0n49YISUPyzcp6+MRR9om8GuhHYDyuCprEGxLPxvj0k3565QlRhv mc019DtTr97gN95pAx/OUjslwtAU8Vpw4ev7wLql7j84jrvkbcYUXVEYm zV037Mr5W2JnbgGHvfoTdNGhAf2qUxNsk0+xZQ6/RizNsFNowrbfVyrvw 0agG8pUylWj8ETaiizRuxDu+4IW9DIOeXYYX70vOvIIqRpj0kzY1HKmSC w==; X-IronPort-AV: E=McAfee;i="6600,9927,10776"; a="397346755" X-IronPort-AV: E=Sophos;i="6.01,216,1684825200"; d="scan'208";a="397346755" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2023 07:45:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10776"; a="794047442" X-IronPort-AV: E=Sophos;i="6.01,216,1684825200"; d="scan'208";a="794047442" Received: from lkp-server02.sh.intel.com (HELO 36946fcf73d7) ([10.239.97.151]) by fmsmga004.fm.intel.com with ESMTP; 19 Jul 2023 07:45:23 -0700 Received: from kbuild by 36946fcf73d7 with local (Exim 4.96) (envelope-from ) id 1qM8QR-00051r-36; Wed, 19 Jul 2023 14:45:13 +0000 Date: Wed, 19 Jul 2023 22:44:57 +0800 From: kernel test robot To: Jay Patel Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: Re: [RFC PATCH v3] mm/slub: Optimize slub memory usage Message-ID: <202307192243.yQx6GBlt-lkp@intel.com> References: <20230719102104.1954891-1-jaypatel@linux.ibm.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230719102104.1954891-1-jaypatel@linux.ibm.com> Hi Jay, [This is a private test report for your RFC patch.] kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Jay-Patel/mm-slub-Optimize-slub-memory-usage/20230719-182356 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20230719102104.1954891-1-jaypatel%40linux.ibm.com patch subject: [RFC PATCH v3] mm/slub: Optimize slub memory usage config: i386-randconfig-r024-20230718 (https://download.01.org/0day-ci/archive/20230719/202307192243.yQx6GBlt-lkp@intel.com/config) compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a) reproduce: (https://download.01.org/0day-ci/archive/20230719/202307192243.yQx6GBlt-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202307192243.yQx6GBlt-lkp@intel.com/ All errors (new ones prefixed by >>): >> mm/slub.c:4164:26: error: use of undeclared identifier 'PAGE_SIZE_4K' page_frac = ((PAGE_SIZE/PAGE_SIZE_4K) == 1) ? 0 : PAGE_SIZE/PAGE_SIZE_4K; ^ mm/slub.c:4164:62: error: use of undeclared identifier 'PAGE_SIZE_4K' page_frac = ((PAGE_SIZE/PAGE_SIZE_4K) == 1) ? 0 : PAGE_SIZE/PAGE_SIZE_4K; ^ 2 errors generated. vim +/PAGE_SIZE_4K +4164 mm/slub.c 4128 4129 static inline int calculate_order(unsigned int size) 4130 { 4131 unsigned int order; 4132 unsigned int min_objects; 4133 unsigned int max_objects; 4134 unsigned int nr_cpus; 4135 unsigned int page_frac; 4136 4137 /* 4138 * Attempt to find best configuration for a slab. This 4139 * works by first attempting to generate a layout with 4140 * the best configuration and backing off gradually. 4141 * 4142 * First we increase the acceptable waste in a slab. Then 4143 * we reduce the minimum objects required in a slab. 4144 */ 4145 min_objects = slub_min_objects; 4146 if (!min_objects) { 4147 /* 4148 * Some architectures will only update present cpus when 4149 * onlining them, so don't trust the number if it's just 1. But 4150 * we also don't want to use nr_cpu_ids always, as on some other 4151 * architectures, there can be many possible cpus, but never 4152 * onlined. Here we compromise between trying to avoid too high 4153 * order on systems that appear larger than they are, and too 4154 * low order on systems that appear smaller than they are. 4155 */ 4156 nr_cpus = num_present_cpus(); 4157 if (nr_cpus <= 1) 4158 nr_cpus = nr_cpu_ids; 4159 min_objects = 4 * (fls(nr_cpus) + 1); 4160 } 4161 max_objects = order_objects(slub_max_order, size); 4162 min_objects = min(min_objects, max_objects); 4163 > 4164 page_frac = ((PAGE_SIZE/PAGE_SIZE_4K) == 1) ? 0 : PAGE_SIZE/PAGE_SIZE_4K; 4165 4166 while (min_objects >= 1) { 4167 unsigned int fraction; 4168 4169 fraction = 16 + page_frac; 4170 while (fraction >= 4) { 4171 order = calc_slab_order(size, min_objects, 4172 slub_max_order, fraction); 4173 if (order <= slub_max_order) 4174 return order; 4175 fraction /= 2; 4176 } 4177 min_objects--; 4178 } 4179 4180 /* 4181 * Doh this slab cannot be placed using slub_max_order. 4182 */ 4183 order = calc_slab_order(size, 1, MAX_ORDER, 1); 4184 if (order <= MAX_ORDER) 4185 return order; 4186 return -ENOSYS; 4187 } 4188 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki