LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 01-07-2021, 05:00 PM   #1
Grobe
Member
 
Registered: Aug 2019
Location: Close to north
Distribution: Fedora
Posts: 117

Rep: Reputation: Disabled
Thumbs up Trying to disable spectre mitigations


Hi.

Just installed MX on an older computer, that I plan to use to encode video records using AviDemux. The job in question would take several days to complete, and I'll try to disable any spectre mitigations in hope that will maximize the conversion job.

The computer in question is used for this purpose only, there is no personal files on it nor is it connected to internet.MX Linus is just installed and updated.


I came over this article on the web:
https://www.zdnet.com/article/linux-...e-mitigations/

And so I entered the grub menu on restart, and made 3 lines after third argument from top: "nospectre_v2", "nospec_store_bypass_disable" and "nospectre_v1".

Unfortunately, the text returned after I started booting said that those arguments was not recognized (can't remember the excact phrase now).


Is there something I've missed? Are those commands not supported by MX Linux? Something else I haven't considered?
Can I somehow boot MX Linux in such a way that the spectre mitigations have as little as possible impact on performance?


Thanks in advance



[edit]

After I wrote this thread, I found this web page
https://unix.stackexchange.com/quest...wn-mitigations

Where this command is suggested:
mitigations=off will disable all optional CPU mitigations.

I added that line in the grub menu, and couldn't see any message suggesting it isn't valid, so I guess it work.

The only thing left, I don't know if it's related - I had a usb stick where some of the movie clips are stored. I opened the first videofile to VLC from within Caja (just to verify I'd selected the correct clip) and wathc a couple of seconds before I closed VLC. I then opened the next video clip same way, but this time VLC did not started, nor was there any r/w activity on the usb stick (a corsair model with a bright blue led showing activity). Tried to open VLC from main meny, but nothing. Tried to look for VLC using htop, seemingly nothing.
So I forgot about VLC and proceeded using AviDemux both to inspect the video clips and do the encoding.

Last edited by Grobe; 01-07-2021 at 06:47 PM. Reason: believe solution is found
 
Old 01-08-2021, 06:04 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
The handiest way is to downgrade the cpu microcode to something from pre-spectre days. The main issue IIRC was VMs leaking not being insulated from / in certain circumstances, so the VM could be penetrated, then your server. You're not worried about meltdown, so I take it you have an AMD or Arm CPU?
 
Old 01-08-2021, 02:05 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Are you sure the mitigations are enabled?
Most search results recommend this:
Code:
$ git clone https://github.com/speed47/spectre-meltdown-checker.git
$ cd spectre-meltdown-checker/
$ sudo ./spectre-meltdown-checker.sh
Disclaimer: I'm not responsible if you break your machine because of running unknown code with sudo. Check the github repo for comments & issues.

(though I believe the info is written into some file under /proc in plain text)

Last edited by ondoho; 01-08-2021 at 02:06 PM.
 
  


Reply

Tags
boot, performance, spectre



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable Spectre and Meltdown mitigations in Ubuntu 18.04? Boggle247 Linux - Newbie 9 01-12-2020 11:53 AM
LXer: Spectre and Meltdown Mitigations Now Available for FreeBSD and OpenBSD Systems LXer Syndicated Linux News 0 02-23-2018 08:56 PM
LXer: Chrome 64 Released With Stronger Pop-up Blocker, Spectre Mitigations And Other Security Fixes LXer Syndicated Linux News 0 01-26-2018 05:42 AM
[SOLVED] Spectre/Meltdown mitigations in kernel 4.4.111 drgibbon Slackware 3 01-18-2018 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 03:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration