OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> maxcpus=5
mithrandir
post Mar 21 2019, 03:06 PM
Post #1





Group: Members
Posts: 120
Joined: 7-January 18
Member No.: 815,997



Today, just out of interest I had a look at the kernel cmdline and noticed we are are restricted to 5 cpus:

root@gemini:/home/gemini# cat /proc/cmdline
console=tty0 console=ttyMT0,921600n1 root=/dev/ram vmalloc=496M slub_max_order=0 slub_debug=OFZPU androidboot.hardware=mt6797 maxcpus=5 androidboot.verifiedbootstate=green bootopt=64S3,32N2,64N2 log_buf_len=4M printk.disable_uart=1 bootprof.pl_t=1127 bootprof.lk_t=2950 boot_reason=4 androidboot.serialno=TGRWNRQ8ORQKC6TK androidboot.bootreason=wdt_by_pass_pwk gpt=1 usb2jtag_mode=0

To prove this I tried while running sysbench ( sysbench --test=threads --num-threads=99 run ) to see the count of enabled cpus:
root@gemini:/home/gemini# cat /proc/cpuinfo |grep proc|wc -l
5

The count of active cpus never went above 5 (as expected). Does anybody know the reason for this restriction? Has anybody already tried to increase this number, maybe to 10? Do we all have this restriction(might be a problem with my setup, but don't think so)? Where could this be changed (it is not part of the mkbootimg call)?

Mith
Go to the top of the page
 
+Quote Post
Eric BF
post Mar 22 2019, 12:37 AM
Post #2





Group: Members
Posts: 77
Joined: 25-June 18
Member No.: 824,997



QUOTE(mithrandir @ Mar 21 2019, 11:06 PM) *
Do we all have this restriction(might be a problem with my setup, but don't think so)?

I don't know but I can confirm that I also see maxcpus=5 in the output of that command.
Go to the top of the page
 
+Quote Post
Adam Boardman
post Mar 22 2019, 01:04 AM
Post #3





Group: Members
Posts: 173
Joined: 29-December 17
Member No.: 815,489



I assumed it was related to the big.little ARM thing were we want to either be running the higher or lower powered cores. If anyone is running the latest android release (I'm still a few behind as I never use it), it would be very interesting to compare the Android side cmdline and kernel build parameters (probably extract-able from /proc/config.gz).

I was planning on checking this after they release the 8.1, but if anyone wants to do so sooner then there could still be interesting things to learn from the last release.
Go to the top of the page
 
+Quote Post
Kiriririn
post Mar 22 2019, 03:43 AM
Post #4





Group: Members
Posts: 67
Joined: 19-January 18
Member No.: 816,673



This definitely did work in the past, i.e. running a heavy multi threaded process fired up all 10 CPU cores
Go to the top of the page
 
+Quote Post
Varti
post Mar 22 2019, 04:38 AM
Post #5





Group: Admin
Posts: 934
Joined: 30-April 08
From: Italy
Member No.: 21,713



QUOTE(Adam Boardman @ Mar 22 2019, 10:04 AM) *
If anyone is running the latest android release (I'm still a few behind as I never use it), it would be very interesting to compare the Android side cmdline and kernel build parameters (probably extract-able from /proc/config.gz).

I'm running the latest Android release, I have checked under Termux though I couldn't find neither /proc/config.gz nor the /boot folder itself. I guess this might be retrieved from the kernel sources (https://github.com/dguidipc/gemini-android-kernel-3.18/tree/master/kernel-3.18/arch/arm/configs), though I believe there's no guarantee that the config file there was the one used for the latest compiled kernel.

Varti
Go to the top of the page
 
+Quote Post
mithrandir
post Mar 22 2019, 09:23 AM
Post #6





Group: Members
Posts: 120
Joined: 7-January 18
Member No.: 815,997



QUOTE(Varti @ Mar 22 2019, 04:38 AM) *
I'm running the latest Android release, I have checked under Termux though I couldn't find neither /proc/config.gz nor the /boot folder itself. I guess this might be retrieved from the kernel sources (https://github.com/dguidipc/gemini-android-kernel-3.18/tree/master/kernel-3.18/arch/arm/configs), though I believe there's no guarantee that the config file there was the one used for the latest compiled kernel.

Varti


It is not related to kernel configuration. From kernel config:
CONFIG_NR_CPUS=10
CONFIG_CMDLINE="console=tty0 console=ttyMT3,921600n1 root=/dev/ram vmalloc=496M slub_max_order=0 slub_debug=O "

Mith
Go to the top of the page
 
+Quote Post
Thiago Alves
post Aug 3 2019, 07:56 PM
Post #7





Group: Members
Posts: 11
Joined: 20-July 19
Member No.: 852,376



I tested this on a Debian chroot running on Android 7, and I can confirm that on the Android side it shows all CPUs. Here is /proc/cpuinfo while sysbench is running:
CODE
Processor    : AArch64 Processor rev 4 (aarch64)
processor    : 0
model name    : AArch64 Processor rev 4 (aarch64)
BogoMIPS    : 26.00
BogoMIPS    : 26.00
Features    : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer    : 0x41
CPU architecture: 8
CPU variant    : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor    : 1
model name    : AArch64 Processor rev 4 (aarch64)
BogoMIPS    : 26.00
BogoMIPS    : 26.00
Features    : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer    : 0x41
CPU architecture: 8
CPU variant    : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor    : 2
model name    : AArch64 Processor rev 4 (aarch64)
BogoMIPS    : 26.00
BogoMIPS    : 26.00
Features    : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer    : 0x41
CPU architecture: 8
CPU variant    : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor    : 3
model name    : AArch64 Processor rev 4 (aarch64)
BogoMIPS    : 26.00
BogoMIPS    : 26.00
Features    : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer    : 0x41
CPU architecture: 8
CPU variant    : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor    : 4
model name    : AArch64 Processor rev 4 (aarch64)
BogoMIPS    : 26.00
BogoMIPS    : 26.00
Features    : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer    : 0x41
CPU architecture: 8
CPU variant    : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor    : 5
model name    : AArch64 Processor rev 4 (aarch64)
BogoMIPS    : 26.00
BogoMIPS    : 26.00
Features    : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer    : 0x41
CPU architecture: 8
CPU variant    : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor    : 6
model name    : AArch64 Processor rev 4 (aarch64)
BogoMIPS    : 26.00
BogoMIPS    : 26.00
Features    : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer    : 0x41
CPU architecture: 8
CPU variant    : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor    : 7
model name    : AArch64 Processor rev 4 (aarch64)
BogoMIPS    : 26.00
BogoMIPS    : 26.00
Features    : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer    : 0x41
CPU architecture: 8
CPU variant    : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor    : 8
model name    : AArch64 Processor rev 4 (aarch64)
BogoMIPS    : 26.00
BogoMIPS    : 26.00
Features    : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer    : 0x41
CPU architecture: 8
CPU variant    : 0x0
CPU part    : 0xd08
CPU revision    : 1

processor    : 9
model name    : AArch64 Processor rev 4 (aarch64)
BogoMIPS    : 26.00
BogoMIPS    : 26.00
Features    : fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer    : 0x41
CPU architecture: 8
CPU variant    : 0x0
CPU part    : 0xd08
CPU revision    : 1

Hardware    : MT6797X
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 15th November 2019 - 03:37 AM