We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

User avatar
ric96
Posts: 1253
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India

pi hung???

Sat Mar 07, 2015 4:10 pm

I was compiling retropie on my pi and it being bery cpu intensive, my pi is showing both power and act/sdcard light constantly lit instead of flickering as usual.
Is it hung??
My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: pi hung???

Sat Mar 07, 2015 4:10 pm

What does top show when you/if you can ssh into it?
There are 10 types of people: those who understand binary and those who don't.

User avatar
ric96
Posts: 1253
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India

Re: pi hung???

Sat Mar 07, 2015 4:13 pm

kusti8 wrote:What does top show when you/if you can ssh into it?
Although its working now looks like it was super loaded
I couldn't ssh at that time at all even tty2 via alt+f2 hung
My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 35014
Joined: Sat Jul 30, 2011 7:41 pm

Re: pi hung???

Sat Mar 07, 2015 4:24 pm

Sounds like it started swapping out to SD card. That can bring them to a crawl.
Software guy, working in the applications team.

User avatar
ric96
Posts: 1253
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India

Re: pi hung???

Sat Mar 07, 2015 4:48 pm

jamesh wrote:Sounds like it started swapping out to SD card. That can bring them to a crawl.
It started doing it again, any way to disable sd swap??
My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com

User avatar
Jednorozec
Posts: 809
Joined: Sun Nov 24, 2013 2:17 pm
Location: Deposit, NY

Re: pi hung???

Sat Mar 07, 2015 5:20 pm

You could move your root file system to a hard drive.
The most important leg of a three legged stool is the one that's missing.
It's called thinking. Why don't you try it sometime?

User avatar
ric96
Posts: 1253
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India

Re: pi hung???

Sat Mar 07, 2015 5:22 pm

Jednorozec wrote:You could move your root file system to a hard drive.
Wouldn't be worth the hassel and then i would need an external power supply hub :(
My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com

User avatar
ric96
Posts: 1253
Joined: Sun Mar 17, 2013 6:03 am
Location: NOIDA, India

Re: pi hung???

Mon Mar 09, 2015 1:23 pm

jamesh wrote:Sounds like it started swapping out to SD card. That can bring them to a crawl.
Ok so it is NOT swap as i disabled it positively.....

Swap disabled using:

Code: Select all

sudo apt-get purge dphys-swapfile
sudo reboot
Environment to replicate tge issues: compile emulationstation using the retopi script using

Code: Select all

sudi MAKEFLAGS="-j4" ./retropie_setup.sh
Select individual install
Select emulationstation
Select Source based

Has to do something with the ram and/or -j4 as cpu stress test went fine with the system responded fine while the stresstest ran
Stress Test:
github.com/ric96/hotpi

[Update]
Tried using -j2 and as expected the program compiled smoothly with the Free RAM dipping to a minimum 155mb and mostly staying above 200mb.
Whereas with -j4 Frer RAM went as low as 15-30mb.
My apologies for shameless YouTube Plugs...
youtube.com/sahajsarup
twitter @sahajsarup
skype srics1996
e-mail: sahajsarup@gmail.com
Blog: http://www.geektillithertz.com/wordpress
Web: http://www.geektillithertz.com

plugwash
Forum Moderator
Forum Moderator
Posts: 3868
Joined: Wed Dec 28, 2011 11:45 pm

Re: pi hung???

Mon Mar 09, 2015 2:13 pm

Even without swap a low ram situation can cause extreme performance drops before it finally triggers the OOM killler. Without swap the kernel can't evict "anonymous" pages but it can and will still evict pages backed by files such as the code of the programs and libraries you are running.

Aydan
Posts: 747
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

Re: pi hung???

Mon Mar 09, 2015 4:10 pm

What I did in a case like this is putting the swap file on a usb hdd, a fast usb stick might do the trick too. Can even be done in runtime.
Just make sure that the swap priority of the HDD hosted swapfile is higher than the one on the SD card.
No need to move the whole root fs.

Regards
Aydan

Return to “General discussion”