Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1811  / 2 Years ago, thu, march 17, 2022, 11:14:51

I'm interested to benchmark a console-mode application, and would like to reduce to a minimum any interferences from other processes in the system.



Is there an easy way to boot into Ubuntu 12.04 in a "bare-metal" mode ? I'm still interested in casually booting a "desktop" version of Ubuntu (so will prefer to avoid permanent changes), and would like to avoid installing a separate Ubuntu-server version.



My use-case is the following -




  1. Application is single-thread and console-mode only.

  2. Test-box has 12GB of memory.

  3. I ssh into the test-box.



Seems I can skip at least Unity, X-server and their dependents.


More From » boot

 Answers
7

As long as you can trust yourself to not mess things up while logged in as root, the best way to get a minimal system with networking and SSH is:




  1. Boot into recovery mode from Grub (hold Shift down when booting to get the menu)



    enter image description here


  2. Enable networking (which will also remount your partitions in normal read/write mode)



    enter image description here


  3. Drop to a root shell (aka single-user mode):



    enter image description here


  4. Do a service ssh start to enable SSH and you're good to go!





Note: you can always give your benchmark program realtime CPU and I/O priority using nice and ionice; e.g. maxing out both would be:



nice --20 ionice -c 1 /path/to/program


[#35616] Thursday, March 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
polcomposte

Total Points: 421
Total Questions: 92
Total Answers: 109

Location: Uzbekistan
Member since Mon, Jul 20, 2020
4 Years ago
;