Jump to content

Photo

Bodhi - Real Time Kernel?

Real Time latency audio music

  • Please log in to reply
8 replies to this topic

#1 Oblio

Oblio

    Bodhi Team

  • Team
  • 165 posts
  • LocationA desk in the Midwest

Posted 16 January 2017 - 02:10 PM

Hello Community,

 

I have been attempting to setup a DAW on my Bodhi system and have been reading about using a real time kernel or some type of "overlay" - does anyone have experience with this and does Bodhi support it?  Playing with the kernel is not something I do on the regs.

 

That said, basically I'm experiencing a fair amount of Xruns in Qjackctl and am trying to eliminate them.  There are about 10k different "opinions" for things to try from adjusting buffers, sample rate, to not using USB 3.0 ports with USB 2.0 interfaces, to running a real time kernel, locking out memory, setting pulse audio not to run, routing jack through ALSA, etc, etc, etc....nothing very concrete I am afraid. 

 

Any suggestions would be phenomenal!  Thank you all!


Xeon E3-1220 v3 3.1GHz Quad, ASRock Rack E3C224, 2x 8GB Kingston KVR16E11/8I DDR3-1600 ECC CL11 Intel Chips (Dual Channel), EVGA GeForce GTX 570, Samsung SM863 120GB OS SSD, 2x WD RED 3TB HDDs (Raid 0), Focusrite Scarlett 2i4, Antec Earthwatts EA-750 80 Plus Platinum 750w PSU - Bodhi 4.1.0 64

AMD Phenom II X4 940 3.0GHz Quad, Gigabyte GA-MA78GPM-DS2H, 2x 2GB Kingston KHX8500D2K2 DDR2-1066 (Dual Channel), EVGA GeForce GTX 570, Intel 30GB OS SDD, Seagate ST31000340AS 1TB HDD, Seagate STBD4000400 4TB HDD, EVGA 500w Bronze Plus 80+ PSU - Bodhi Linux 3.2.1 64




A big thank you to everyone who contributes to Bodhi Linux


#2 Jeff

Jeff

    Lead Developer

  • Developer
  • 12430 posts
  • LocationBloomington, IL

Posted 16 January 2017 - 03:02 PM

If you search the package manager you will find all the kernel options Ubuntu provides there - including builds with "real time" enabled.



#3 Astroboy

Astroboy

    Member

  • Members
  • 338 posts
  • LocationZacatecas, Mexico

Posted 16 January 2017 - 04:57 PM

A real time kernel is not necessary to avoid xruns. Go to

 

kernel.ubuntu.com/~kernel-ppa/mainline/

and download a fairly recent low-latency kernel. Real time kernels are not listed there since a long time ago because they are used only for very specific purposes, music production is not currently one of them.



#4 Oblio

Oblio

    Bodhi Team

  • Team
  • 165 posts
  • LocationA desk in the Midwest

Posted 16 January 2017 - 05:24 PM

Is this something safe/practical to do?  How likely is this to break my current setup?  I don't really have much experience messing with kernels beyond making sure I am up to date...


Xeon E3-1220 v3 3.1GHz Quad, ASRock Rack E3C224, 2x 8GB Kingston KVR16E11/8I DDR3-1600 ECC CL11 Intel Chips (Dual Channel), EVGA GeForce GTX 570, Samsung SM863 120GB OS SSD, 2x WD RED 3TB HDDs (Raid 0), Focusrite Scarlett 2i4, Antec Earthwatts EA-750 80 Plus Platinum 750w PSU - Bodhi 4.1.0 64

AMD Phenom II X4 940 3.0GHz Quad, Gigabyte GA-MA78GPM-DS2H, 2x 2GB Kingston KHX8500D2K2 DDR2-1066 (Dual Channel), EVGA GeForce GTX 570, Intel 30GB OS SDD, Seagate ST31000340AS 1TB HDD, Seagate STBD4000400 4TB HDD, EVGA 500w Bronze Plus 80+ PSU - Bodhi Linux 3.2.1 64


#5 Charles@Bodhi

Charles@Bodhi

    Old Faithful

  • Moderators
  • 4516 posts
  • LocationZeist, The Netherlands

Posted 16 January 2017 - 06:53 PM

No need to use a ppa IMHO. Bodhi ships with a LTS kernel 4.4.0-36. The same longterm supported kernel has a lowlatency variant in the repos. The most recent of those can be installed easily:

sudo apt-get install linux-image-4.4.0-59-lowlatency

Reboot and your grub will show this kernel as first choice. Try it and test it out, your previous kernel will still be available and your setup won't change. But risks are that some candies not work as expected as a stock Bodhi uses the extra - generic kernel version. Again, no harm done.

Whenever you feel the need to return to the "old" kernel you only need to reboot and use grub (maybe you need to look into the advanced line) and boot into the earlier kernel. In case the new one does not please you it is easy to remove it, as long as you are not running it.

 

Enjoy,

Charles



#6 Oblio

Oblio

    Bodhi Team

  • Team
  • 165 posts
  • LocationA desk in the Midwest

Posted 17 January 2017 - 01:08 PM

Thank you, Charles - I'll give that a try tonight.  Would you recommend keeping the "old" kernel regardless, or if I am satisfied, remove it?


Xeon E3-1220 v3 3.1GHz Quad, ASRock Rack E3C224, 2x 8GB Kingston KVR16E11/8I DDR3-1600 ECC CL11 Intel Chips (Dual Channel), EVGA GeForce GTX 570, Samsung SM863 120GB OS SSD, 2x WD RED 3TB HDDs (Raid 0), Focusrite Scarlett 2i4, Antec Earthwatts EA-750 80 Plus Platinum 750w PSU - Bodhi 4.1.0 64

AMD Phenom II X4 940 3.0GHz Quad, Gigabyte GA-MA78GPM-DS2H, 2x 2GB Kingston KHX8500D2K2 DDR2-1066 (Dual Channel), EVGA GeForce GTX 570, Intel 30GB OS SDD, Seagate ST31000340AS 1TB HDD, Seagate STBD4000400 4TB HDD, EVGA 500w Bronze Plus 80+ PSU - Bodhi Linux 3.2.1 64


#7 birdmun

birdmun

    Member

  • Members
  • 350 posts
  • LocationWabash, IN

Posted 23 January 2017 - 12:34 PM

My $0.005 (My lack of knowledge keeps my opinion from being worth the typical 2 cents.). Keep the other kernel for a backup. It is a handful of MB in size. If you don't have the spare space on your system for the other kernel, I would imagine you are in need of more storage space anyway. :)



#8 Oblio

Oblio

    Bodhi Team

  • Team
  • 165 posts
  • LocationA desk in the Midwest

Posted 23 January 2017 - 03:19 PM

My $0.005 (My lack of knowledge keeps my opinion from being worth the typical 2 cents.). Keep the other kernel for a backup. It is a handful of MB in size. If you don't have the spare space on your system for the other kernel, I would imagine you are in need of more storage space anyway. :)

That sounds like a solid!  Thank you for the feedback!


Xeon E3-1220 v3 3.1GHz Quad, ASRock Rack E3C224, 2x 8GB Kingston KVR16E11/8I DDR3-1600 ECC CL11 Intel Chips (Dual Channel), EVGA GeForce GTX 570, Samsung SM863 120GB OS SSD, 2x WD RED 3TB HDDs (Raid 0), Focusrite Scarlett 2i4, Antec Earthwatts EA-750 80 Plus Platinum 750w PSU - Bodhi 4.1.0 64

AMD Phenom II X4 940 3.0GHz Quad, Gigabyte GA-MA78GPM-DS2H, 2x 2GB Kingston KHX8500D2K2 DDR2-1066 (Dual Channel), EVGA GeForce GTX 570, Intel 30GB OS SDD, Seagate ST31000340AS 1TB HDD, Seagate STBD4000400 4TB HDD, EVGA 500w Bronze Plus 80+ PSU - Bodhi Linux 3.2.1 64


#9 Oblio

Oblio

    Bodhi Team

  • Team
  • 165 posts
  • LocationA desk in the Midwest

Posted 13 February 2017 - 02:25 PM

Update!

 

An interesting thing is that I was suspecting a bottleneck in my system's performance due to running a powerful system but using integrated graphics...now that I have installed a video card, like magic, my XRuns are gone!

 

I was able to play guitar through Guitarix for roughly an hour last night with nary an XRun!

 

There is some chance that my XRuns were related to the segfault issue, but I'm not thinking so as I wouldn't be actively moving/resizing windows when the XRuns would occur.

 

Happy Happy!


Xeon E3-1220 v3 3.1GHz Quad, ASRock Rack E3C224, 2x 8GB Kingston KVR16E11/8I DDR3-1600 ECC CL11 Intel Chips (Dual Channel), EVGA GeForce GTX 570, Samsung SM863 120GB OS SSD, 2x WD RED 3TB HDDs (Raid 0), Focusrite Scarlett 2i4, Antec Earthwatts EA-750 80 Plus Platinum 750w PSU - Bodhi 4.1.0 64

AMD Phenom II X4 940 3.0GHz Quad, Gigabyte GA-MA78GPM-DS2H, 2x 2GB Kingston KHX8500D2K2 DDR2-1066 (Dual Channel), EVGA GeForce GTX 570, Intel 30GB OS SDD, Seagate ST31000340AS 1TB HDD, Seagate STBD4000400 4TB HDD, EVGA 500w Bronze Plus 80+ PSU - Bodhi Linux 3.2.1 64






Also tagged with one or more of these keywords: Real Time, latency, audio, music

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users