[Solved] Mint overloaded

Discuss non-support related topics related to LMDE.
Forum rules
Before you post please read this

[Solved] Mint overloaded

Postby Albertin79 on Sun Aug 11, 2013 4:45 pm

Hi,

I've a problem with mint. I play Kingdoms of Camelot, a game of Kabam over internet and i've 2 acounts at same time. Mi PC don't sleep and in the mornings when I see the game, my pc is overloaded and the solution is restart it. I don't know if there are any problem or I need to add some cron tasks to solve it to maintain my pc like is recently turned on. I check memory status and processes running and I think all is ok... Any solution for this?

Thanks

Alberto
Last edited by Albertin79 on Wed Aug 21, 2013 5:33 am, edited 1 time in total.
Albertin79
Level 1
Level 1
 
Posts: 2
Joined: Sun Aug 11, 2013 4:39 pm

Linux Mint is funded by ads and donations.
 

Re: Mint overloaded

Postby grimdestripador on Tue Aug 13, 2013 12:55 pm

Please describe overloaded. Perhaps you are overheating?
User avatar
grimdestripador
Level 6
Level 6
 
Posts: 1069
Joined: Fri Feb 16, 2007 2:26 am

Re: [Solved] Mint overloaded

Postby Albertin79 on Wed Aug 21, 2013 5:42 am

Hi!

Sorry, I was on hollydays. No, I want to say overloaded because when I start to play with the game on the mornings Mint started to work a lot with hard drive and other tasks went slowly. I solved it making a script that stops firefox every 2 hours, clean memory and restart it, perhaps is a stone-hammer method but it works fine. Here is the script:
----------------------------------------------------------------------

#!/bin/bash

for (( i = 7200; i >= 0; i = i - 1 ))
do
clear
echo "Closing Firefox 1.... $i"
sleep 1
done
DISPLAY=:0.0 wmctrl -c "firefox"
for (( i = 10; i >= 0; i = i - 1 ))
do
clear
echo "Closing Firefox 1.... $i"
sleep 1
done
DISPLAY=:0.0 wmctrl -c "firefox"
for (( i = 15; i >= 0; i = i - 1 ))
do
clear
echo "Cleaning RAM en $i"
sleep 1
done

echo "type your su password here" | sudo -S sync && sudo -S sysctl -w vm.drop_caches=3
sync ; echo 2 > /proc/sys/vm/drop_caches

for (( i = 10; i >= 0; i = i - 1 ))
do
clear
echo "Starting Firefox 1... $i"
sleep 1
done

nohup firefox -no-remote -P 1 &

for (( i = 40; i >= 0; i = i - 1 ))
do
clear
echo "Starting Firefox 2... $i"
sleep 1
done
nohup firefox -no-remote -P 2 &
rm /home/qko/Escritorio/nohup.out
cd /home/qko/Escritorio/
./Firefox.sh
-----------------------------------------------------------------

Thanks!
Albertin79
Level 1
Level 1
 
Posts: 2
Joined: Sun Aug 11, 2013 4:39 pm


Return to Open Discussion

Who is online

Users browsing this forum: No registered users and 4 guests