Skip to content

Commit

Permalink
[armhf][Nokia-7215]High CPU caused by entropy.py (#13694)
Browse files Browse the repository at this point in the history
Why I did it
High CPU utilization by entropy.py

How I did it
Remove entropy script as it does not work anymore and is no longer needed for bullseye(202205).
In Buster(202012) the max available poolsize (entropy_avail) for entropy is 4096 and our entropy.py script was based on this value. With the change in kernel to bullseye on 202205 this entropy poolsize was changed to 256 which also causes our script to fail.

This script was initially added to provide SW assistance to improve the system entropy value available early on in the Sonic boot sequence on buster.
On bullseye (Linux kernel 5.10) this is no longer needed as this feature has been improved.

How to verify it
run "top" command to check CPU usage.
  • Loading branch information
Pavan-Nokia authored and mssonicbld committed Feb 17, 2023
1 parent 94e59a8 commit 979e9a7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ nokia-7215_plt_setup.sh usr/sbin
7215/scripts/nokia-7215init.sh usr/local/bin
7215/service/nokia-7215init.service etc/systemd/system
7215/sonic_platform-1.0-py3-none-any.whl usr/share/sonic/device/armhf-nokia_ixs7215_52x-r0
entropy.py etc/
inband_mgmt.sh etc/
22 changes: 0 additions & 22 deletions platform/marvell-armhf/sonic-platform-nokia/entropy.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ main()
fw_uboot_env_cfg
echo "Nokia-IXS7215: /dev/mtd0 FW_ENV_DEFAULT"

python /etc/entropy.py &
/bin/sh /etc/inband_mgmt.sh
}

Expand Down

0 comments on commit 979e9a7

Please sign in to comment.