High memory/cpu usage

Discussion about everything RO and OpenKore related. This place is NOT for ANY kind of support questions.

Moderator: Moderators

kasabianlore
Noob
Noob
Posts: 4
Joined: 12 Jul 2012, 06:50
Noob?: Yes

High memory/cpu usage

#1 Post by kasabianlore »

As topic, I found out that the current version uses lots of memory, around 40k~60k memory use, and high CPU usage especially bots with macros, any ideas or suggestion to cut down the memory usage? I saw someone post his memory usage around only 10k~20k
good1
Human
Human
Posts: 24
Joined: 18 Jul 2012, 11:48
Noob?: No

Re: High memory/cpu usage

#2 Post by good1 »

Try increasing your sleepTime in your config.txt
krisma
Human
Human
Posts: 36
Joined: 05 Mar 2009, 07:47
Noob?: Yes

Re: High memory/cpu usage

#3 Post by krisma »

increase sleeptime in config,the higher the sleep time value lesser itl take cpu usage.
but the makes the bot a bit unresponsive.i suggest if you have bot vendors make it 1m sleeptime :) make it rely on macro
Kaspy
Halfway to Eternity
Halfway to Eternity
Posts: 398
Joined: 08 Jun 2012, 15:42
Noob?: No
Location: Brazil

Re: High memory/cpu usage

#4 Post by Kaspy »

[EN]
Macros consume more memory than plugins.
If you convert your code to plugins, improve performance.

[PT-BR]
Macros consomem mais memória que plugins.
Se você converter seus códigos para plugins, melhorará o desempenho.
Image
krisma
Human
Human
Posts: 36
Joined: 05 Mar 2009, 07:47
Noob?: Yes

Re: High memory/cpu usage

#5 Post by krisma »

yeah but merchants do little macro over periods of time..it increases usage when it triggers but when it doesnt its basicly nothing
kasabianlore
Noob
Noob
Posts: 4
Joined: 12 Jul 2012, 06:50
Noob?: Yes

Re: High memory/cpu usage

#6 Post by kasabianlore »

tried all of it, managed to cut down the memory usage up to 14k~30k

about the macro to plugins...how to make it? and how to execute it? i'm new to this plugins thing
kasabianlore
Noob
Noob
Posts: 4
Joined: 12 Jul 2012, 06:50
Noob?: Yes

Re: High memory/cpu usage

#7 Post by kasabianlore »

i noticed that initially the memory usage is around 50k, but over a certain time the usage decreases to 17k, i turned off the recorders (logchat,portal record) and set verbose to -1... i wonder whether the changes i made have any effects, most of my friends tried it but it does not work for them