Welcome!
Forum users

Current releases
--MX-23 release info here
--Migration information to MX-23 here
--antiX-23.1 (Arditi del Popolo) release info here

Important information
--If in starting your system it boots to an unwanted Desktop, right click desktop, then select leave and logout. At the
login screen there is a session chooser at the top of the screen.

News
-- MX Linux on social media: here
-- New Forum Features, Marking Solved and Referencing a User: here

4.15.5 Kernel - Ryzen System smiling

Message
Author
User avatar
namida12
Posts: 437
Joined: Sun Apr 01, 2007 4:54 pm

Re: 4.15.5 Kernel - Ryzen System smiling

#11 Post by namida12 »

caprea wrote:
So you have three options to get the newest protection against spectre/meltdown

1.Try the 4.15.0-1-amd64-mx kernel without the boot parameter,just for to make it sure.(But I think it will crash during idle)
2. Stay with the antix-kernels and download the newest 4.15.5-antix.1-amd64-smp with synaptic.It's not in the Package-Installer(only 4.15.3,I don't know why) and use the bootparameter.

Code: Select all

$  sudo cat /boot/config-4.15.5-antix.1-amd64-smp | grep CONFIG_RCU_NOCB_CPU 
CONFIG_RCU_NOCB_CPU=y
3.Try the liqourix-kernel -4.15.0-6.1-liquorix-amd64, whis is in the Package-Installer, with the boot-parameter. It also has the flag set to yes.

Code: Select all

$  sudo cat /boot/config-4.15.0-6.1-liquorix-amd64 | grep CONFIG_RCU_NOCB_CPU 
CONFIG_RCU_NOCB_CPU=y

OK... Read start to finish (viewtopic.php?f=104&t=43958&start=110) I must be getting old, and stupid.

I have a Ryzen 5 - 1500x


Code: Select all

green250@antix250:~
$ sudo cat /boot/config-4.15.5-antix.1-amd64-smp | grep CONFIG_RCU_NOCB_CPU 
[sudo] password for green250: 
CONFIG_RCU_NOCB_CPU=y
Question: How to add: rcu_nocbs=0-7 since I am already installed with 4.15.5-antix
- For 8-threads Ryzen (1500X, 1500, 1400): rcu_nocbs=0-7

JR

caprea
Posts: 146
Joined: Sat Aug 23, 2014 7:01 am

Re: 4.15.5 Kernel - Ryzen System smiling

#12 Post by caprea »

I think we cross-posted.Look one page before.

User avatar
entropyfoe
Posts: 590
Joined: Thu Apr 19, 2007 11:42 am

Re: 4.15.5 Kernel - Ryzen System smiling

#13 Post by entropyfoe »

You can add the boot parameter with the command line like caprea showed.

I used the MX grub manager (I think that is the name, it is in the MX ---> system menu). You have to supply root PW.
In the center tab, it shows the boot parameters, I had some kind of zsynch (?) parameter, so I typed one space then added the

rcu_nocbs=0-7 (In my case it was 0-11)

Apply, update grub, and reboot.
The 4.15.3 has been absolutely stable since I added that.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
I am trying to get the 4.15.5 to run. I installed with synaptic, headers and image. I ran the dpkg reconfigure, update-grub.
The reconfigure did build an nvidia for the 4.15.5.

Despite this I booted to a black screen with a blinking cursor. I could not startx.

I have to look at old posts, maybe caprea had a trick to the install the linux image after the dkgk reconfigure. But that is a separate post and problem.
Asus PRIME X470-PRO
AMD Ryzen 3600X (12 threads @ 3.8 GHz)
32 Gig DDR4 3600 (Crucial CL 16)
Nvidia GeForce GT 710
Samsung 970 NVMe nvme0n1 P1-3=MX-23, P4=testing
Samsung 980 NVMe =1TB Data, plus 2TB WD =backups
on-board ethernet & sound

User avatar
namida12
Posts: 437
Joined: Sun Apr 01, 2007 4:54 pm

Re: 4.15.5 Kernel - Ryzen System smiling

#14 Post by namida12 »

caprea wrote:If you want to try the bootparameter, it's pretty easy on antix

Boot into the 4.15.5-antix-kernel
type in terminal

Code: Select all

echo rcu_nocbs=0-$(($(nproc)-1))
The output will probably look like this for your cpu
rcu_nocbs=0-7


Whatever comes out, this you have to add to your grub-line

Then type in terminal

Code: Select all

sudo leafpad /etc/default/grub
This will open the grub-file with the following lines

Code: Select all

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="vga=791 quiet"
GRUB_CMDLINE_LINUX=""
Add the output of the above command rcu_nocbs=0-7 (or whatever) to the GRUB_CMDLINE_LINUX_DEFAULT - line
should look like this

Code: Select all

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="vga=791 quiet rcu_nocbs=0-7"
GRUB_CMDLINE_LINUX=""
Close the file and save it.

Then

Code: Select all

sudo update-grub
Reboot

Look if the parameter is active with

Code: Select all

cat /proc/cmdline 
That's it!

Test if your system is stable, leave it in idle or whatever.

The rcu_nocbs=x-x bootparameter just replaces the CONFIG_RCU_NOCB_CPU_ALL=y configuration, which was active on the working 4.10-kernels
and was removed sometime later during kernel-developement.Maybe it's a bug for the ryzen.

If that should not work for you, the bootparameter can easily be removed again.
Give it a try!
* * *
caprea,

Thanks for the hand holding explanation, to let me make this change. All should be well again.

I do not have a motherboard temperature, and know my 2007 video card is running warm but system was up and running all night long seeding AntiX-17 and Mx-17. I made final change via your instructions today and will hope system can run 24/7 for a few weeks without more Kernel/Ryzen cutting edge hiccups.

Code: Select all

green250@antix250:~
$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.15.5-antix.1-amd64-smp root=UUID=b87dac9b-c1c1-4a0f-8344-42f2dd3e9b07 ro BOOT_IMAGE=/antiX/vmlinuz quiet rcu_nocbs=0-7

Code: Select all

green250@antix250:~
$ inxi -F
System:    Host: antix250 Kernel: 4.15.5-antix.1-amd64-smp x86_64 bits: 64 Desktop: IceWM 1.4.2
           Distro: antiX-17_x64-full Heather Heyer 24 October 2017
Machine:   Device: laptop Mobo: MSI model: B350M GAMING PRO (MS-7A39) v: 1.0 serial: N/A
           UEFI [Legacy]: American Megatrends v: 2.30 date: 03/24/2017
CPU:       Quad core AMD Ryzen 5 1500X (-MT-MCP-) cache: 2048 KB
           clock speeds: max: 3500 MHz 1: 1330 MHz 2: 1329 MHz 3: 2399 MHz 4: 2403 MHz 5: 3394 MHz 6: 3215 MHz
           7: 1303 MHz 8: 1301 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] RV670 [Radeon HD 3690/3850]
           Display Server: X.Org 1.19.2 drivers: ati,radeon (unloaded: modesetting,fbdev,vesa)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: Gallium 0.4 on AMD RV670 (DRM 2.50.0 / 4.15.5-antix.1-amd64-smp, LLVM 3.9.1)
           version: 3.3 Mesa 13.0.6
Audio:     Card-1 Advanced Micro Devices [AMD] Device 1457 driver: snd_hda_intel
           Card-2 Advanced Micro Devices [AMD/ATI] RV670/680 HDMI Audio [Radeon HD 3690/3800 Series]
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.15.5-antix.1-amd64-smp
Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: 18:d6:c7:06:f9:4a
Drives:    HDD Total Size: 250.1GB (42.3% used)
           ID-1: /dev/sda model: Samsung_SSD_850 size: 250.1GB
Partition: ID-1: / size: 14G used: 7.8G (60%) fs: ext4 dev: /dev/sda1
           ID-2: /home size: 206G used: 87G (45%) fs: ext4 dev: /dev/sda3
           ID-3: swap-1 size: 4.29GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
Sensors:   System Temperatures: cpu: 35.4C mobo: N/A gpu: 82.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 213 Uptime: 17 min Memory: 596.0/16057.9MB Client: Shell (bash) inxi: 2.3.54 


User avatar
namida12
Posts: 437
Joined: Sun Apr 01, 2007 4:54 pm

Re: 4.15.5 Kernel - Ryzen System smiling

#15 Post by namida12 »

entropyfoe wrote:You can add the boot parameter with the command line like caprea showed.

I used the MX grub manager (I think that is the name, it is in the MX ---> system menu). You have to supply root PW.
In the center tab, it shows the boot parameters, I had some kind of zsynch (?) parameter, so I typed one space then added the

rcu_nocbs=0-7 (In my case it was 0-11)

Apply, update grub, and reboot.
The 4.15.3 has been absolutely stable since I added that.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
I am trying to get the 4.15.5 to run. I installed with synaptic, headers and image. I ran the dpkg reconfigure, update-grub.
The reconfigure did build an nvidia for the 4.15.5.

Despite this I booted to a black screen with a blinking cursor. I could not startx.

I have to look at old posts, maybe caprea had a trick to the install the linux image after the dkgk reconfigure. But that is a separate post and problem.
* * *
entropyfoe,

I am using AntiX 17, and used: Applications> system tools> Package installer> and the Kernel drop down menu to choose the 4.15.5 version.

I do not have a Nvidia card, to complicate the kernel change as the 7 year old Radeon video card boots to a graphical screen without any additional manipulations.

I always purchase CPU with the video built in, last few years anyway, but wanted a faster CPU this time around, and needed to use a older Video card to keep the build cost within my pocketbook outlay so I did not alarm my lady. The crypto miners have taken Video cards to astronomical pricing heights, but I am still occasionally searching craigslist for a newer Video Card.

JR

caprea
Posts: 146
Joined: Sat Aug 23, 2014 7:01 am

Re: 4.15.5 Kernel - Ryzen System smiling

#16 Post by caprea »

namida12, let us know how it went for you with the bootoption.
Also it seems for some boards bios updates finally appear that solve the problem.
https://bugzilla.kernel.org/show_bug.cgi?id=196683

User avatar
namida12
Posts: 437
Joined: Sun Apr 01, 2007 4:54 pm

Re: 4.15.5 Kernel - Ryzen System smiling

#17 Post by namida12 »

Things have been good here, and now understand we have 17.1 a new upgrade...

Code: Select all

$ inxi -F
System:    Host: antix250 Kernel: 4.15.5-antix.1-amd64-smp x86_64 bits: 64 Desktop: IceWM 1.4.2
           Distro: antiX-17_x64-full Heather Heyer 24 October 2017
Machine:   Device: laptop Mobo: MSI model: B350M GAMING PRO (MS-7A39) v: 1.0 serial: N/A
           UEFI [Legacy]: American Megatrends v: 2.30 date: 03/24/2017
CPU:       Quad core AMD Ryzen 5 1500X (-MT-MCP-) cache: 2048 KB
           clock speeds: max: 3500 MHz 1: 1330 MHz 2: 1328 MHz 3: 2398 MHz 4: 2405 MHz 5: 1328 MHz 6: 1328 MHz
           7: 2989 MHz 8: 2885 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] RV670 [Radeon HD 3690/3850]
           Display Server: X.Org 1.19.2 drivers: ati,radeon (unloaded: modesetting,fbdev,vesa)
           Resolution: 1920x1080@60.00hz
           OpenGL: renderer: Gallium 0.4 on AMD RV670 (DRM 2.50.0 / 4.15.5-antix.1-amd64-smp, LLVM 3.9.1)
           version: 3.3 Mesa 13.0.6
Audio:     Card-1 Advanced Micro Devices [AMD] Device 1457 driver: snd_hda_intel
           Card-2 Advanced Micro Devices [AMD/ATI] RV670/680 HDMI Audio [Radeon HD 3690/3800 Series]
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.15.5-antix.1-amd64-smp
Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: 18:d6:c7:06:f9:4a
Drives:    HDD Total Size: 250.1GB (42.4% used)
           ID-1: /dev/sda model: Samsung_SSD_850 size: 250.1GB
Partition: ID-1: / size: 14G used: 7.8G (60%) fs: ext4 dev: /dev/sda1
           ID-2: /home size: 206G used: 88G (45%) fs: ext4 dev: /dev/sda3
           ID-3: swap-1 size: 4.29GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
Sensors:   System Temperatures: cpu: 34.4C mobo: N/A gpu: 70.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 209 Uptime: 9 days Memory: 1564.3/16057.9MB Client: Shell (bash) inxi: 2.3.54 

Still smiling, and wondering should I upgrade to the newer version. Is new version is running the 4.15.9 kernel-antix. Does that have the boot fix?

Since I seed MX, and Antix are there new 17.1 torrent I did not see?

JR

caprea
Posts: 146
Joined: Sat Aug 23, 2014 7:01 am

Re: 4.15.5 Kernel - Ryzen System smiling

#18 Post by caprea »

Ah, I see Uptime: 9 days, cool !

4.15.9 kernel-antix is OK. CONFIG_RCU_NOCB_CPU=y
but not the default on antiX17.1

User avatar
namida12
Posts: 437
Joined: Sun Apr 01, 2007 4:54 pm

Re: 4.15.5 Kernel - Ryzen System smiling

#19 Post by namida12 »

Code: Select all

green251@antix3:~
$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.15.9-antix.1-amd64-smp root=UUID=96cbca50-755c-4477-ad3f-a193f007bea2 ro BOOT_IMAGE=/antiX/vmlinuz quiet rcu_nocbs=0-7
Waiting for newer AntiX 4.16 version to see if there are any improvements...

Had a Asus 24 inch Monitor die, and the left DVI connector while looking at the face plate on my AMD RV670 [Radeon HD 3690/3850] video card this week. Switched to the right DVI connector on the video card and it is working with replacement Acer 23 inch screen. The Asus monitor will not work with VGA, DVI or HDMI connectors. Maybe a switch replacement daughter card might be the fix, not certain yet...

JR

Post Reply

Return to “antiX”