[LU-8710] libcfs fails to install when some CPUs are disabled Created: 16/Oct/16  Updated: 24/Jan/17  Resolved: 24/Jan/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.10.0

Type: Bug Priority: Minor
Reporter: Jinshan Xiong (Inactive) Assignee: Dmitry Eremin (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by LU-8703 rework CPU partition code Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

This issue was mentioned when Lustre performance was tested on ZFS.

To reproduce this, set a CPU offline:

[root@centos7 tests]# echo 0 >  /sys/devices/system/cpu/cpu0/online
[root@centos7 tests]# cat /sys/devices/system/cpu/cpu0/online 
0
[root@centos7 tests]# REFORMAT=yes OSTCOUNT=4 sh llmount.sh 
Stopping clients: centos7 /mnt/lustre (opts:)
Stopping clients: centos7 /mnt/lustre2 (opts:)
Loading modules from /Users/jxiong/srcs/pfl/lustre/tests/..
detected 4 online CPUs by sysfs
Force libcfs to create 2 CPU partitions
../libcfs/libcfs/libcfs options: 'cpu_npartitions=2'
insmod: ERROR: could not insert module /Users/jxiong/srcs/pfl/lustre/tests/../../libcfs/libcfs/libcfs.ko: Operation not permitted

Really easy to be reproduced.



 Comments   
Comment by Dmitry Eremin (Inactive) [ 16/Oct/16 ]

The same as LU-8703

Comment by Dmitry Eremin (Inactive) [ 21/Oct/16 ]

reopen to provide small patch instead of fix as part of other patch,

Comment by Dmitry Eremin (Inactive) [ 21/Oct/16 ]

Patch is http://review.whamcloud.com/23305

Comment by Gerrit Updater [ 24/Jan/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/23305/
Subject: LU-8710 ptlrpc: use current CPU instead of harcoded 0
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: ef94e4d1bb4350a811da6123993b8289d3d3c43e

Comment by Peter Jones [ 24/Jan/17 ]

Landed for 2.10

Generated at Sat Feb 10 02:19:54 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.