Page 1 of 1

Set # of CPU cores

Posted: Thu Mar 21, 2013 4:24 pm
by mtbrookse33
Hello,

LMMS hangs every 5 or so minutes when changing windows or doing automation so I figured changing the # of CPU cores LMMS has access to would fix the problem. However, I can't seem to find the option in the settings menu - it is not under performance like it is in the screenshot on this wiki page (under performance settings).

The page: http://lmms.sourceforge.net/wiki/index. ... S_Settings

I am using the git version of LMMS found in the CCR. I am using Chakra Linux.

Any idea what is causing the hangs / how I can change the # of CPU cores LMMS can use?

Regards,
Matt.

Re: Set # of CPU cores

Posted: Fri Mar 22, 2013 9:33 am
by musikbear
I am using the git version of LMMS found in the CCR.
-but what version? That is important in respect to:
mtbrookse33 wrote: LMMS hangs every 5 or so minutes when changing windows or doing automation so
v12 and 13 had a bad glitch in the auto-update. You can find a lot on this issue, if you search
When v14 rc1 was released, this auto-save was made optional!
Since the piking is every 5 or so -i suspect that it is auto-save/update, that kicks in
You cant do anything to that in ver < 14, and thats only a rc version. It is up to you if you want to use rc1 for production.
B.r.

Re: Set # of CPU cores

Posted: Fri Mar 22, 2013 2:12 pm
by mtbrookse33
I couldn't say exactly what version I'm on right now because I'm not near my comouter, but I can say that it also happened with the stable version in the Chakra repos. I thought going to git would fix it.

Also, LMMS freezes for a few minutes sometimes when I scroll down in the main track window or the beat and bassline editor.

Do you still think this is an issue with the version?

Re: Set # of CPU cores

Posted: Fri Mar 22, 2013 2:26 pm
by zonkmachine
Here's a piece of software to limit the cpu usage of a process.
http://www.cyberciti.biz/faq/cpu-usage- ... for-linux/

Ps. I have't tried it.

Re: Set # of CPU cores

Posted: Fri Mar 22, 2013 3:10 pm
by mtbrookse33
Would that make LMMS not freeze? I fell like it would do the opposite.

Re: Set # of CPU cores

Posted: Fri Mar 22, 2013 4:00 pm
by zonkmachine
mtbrookse33 wrote:Would that make LMMS not freeze? I fell like it would do the opposite.
Maybe. On my laptop I have Mint (ubuntu 10.10) and LMMS will use all cores without me telling it to.

From the project homepage:
http://cpulimit.sourceforge.net/
If your machine has one processor you can limit the percentage from 0% to 100%, which means that if you set for example 50%, your process cannot use more than 500 ms of cpu time for each second. But if your machine has four processors, percentage may vary from 0% to 400%, so setting the limit to 200% means to use no more than half of the available power. In any case, the percentage is the same of what you see when you run top.

Re: Set # of CPU cores

Posted: Fri Mar 22, 2013 4:08 pm
by mtbrookse33
Interesting, thanks for the help. I just ran whats below and will report on the behavior of LMMS in a little while.

Code: Select all

sudo cpulimit -l 50 -p <(PID found with pgrep lmms)>
EDIT:

This made lmms unusable.. sound was very distorted with popping. Popping immediately resolved after exiting the cpulimit process

Re: Set # of CPU cores

Posted: Fri Mar 22, 2013 5:05 pm
by mtbrookse33
mtbrookse33 wrote:Interesting, thanks for the help. I just ran whats below and will report on the behavior of LMMS in a little while.

Code: Select all

sudo cpulimit -l 50 -p <(PID found with pgrep lmms)>
EDIT:

This made lmms unusable.. sound was very distorted with popping. Popping immediately resolved after exiting the cpulimit process
Realized that you were saying that if I had 4 cores I should use 200 instead of 50, or whatever applies to me specifically, so I ran cpulimit again like so:

Code: Select all

sudo cpulimit -l 200 -p <(PID found with pgrep lmms)>
Now there is no popping sound, but the freezing persists. Seems to freeze when doing things like saving, exporting, scrolling through large track/instrument views, loading Zynaddsubfx, etc.

Re: Set # of CPU cores

Posted: Sat Mar 23, 2013 9:57 am
by musikbear
mtbrookse33 wrote:I
Do you still think this is an issue with the version?
no, it looks like something not working :/
How about the buffer-setting, have you tweaked with that?

Is it only lmms that works sub-optimal on your pc?
How does other sound programs work -like vstHost (if you have it..)

But this is not simple to solve, im afraid