LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-26-2014, 11:49 AM   #1
ahaurum
LQ Newbie
 
Registered: May 2014
Posts: 10

Rep: Reputation: Disabled
cgminer stops mining after about an hour


Hi all, I am not sure if this is a newbie question or not however I am gonna need a newbie answer. And I hope you are all familiar with raspberry pi and raspbian software. My problem is this:

I just finished compiling sgminer and running cgminer 3.7.2(latest version to support asic mining) on my raspberry pi and I downloaded raspbian as the OS because I am sorta a beginner at linux. Anyway, I have plugged a gridseed into the pi, compiled sgminer, so now i start mining! Although i was mining, i couldnt mine for more than about 20 minutes before the screen fell asleep. So i spent the next week trying to fix that problem. I think I have fixed it now but the screen still freezes meaning that I have to restart. So now I just run the cgminer commands before the "startx". Now my problem is that after about an hour of mining, it says "Unable to handle paging request at virtual address ________" plus a bunch of other stuff after that. I want cgminer to just keep running until i tell it to stop!!! i have spent countless hours and if one of you guys who knows about cgminer, asics, raspberry pi, and raspbian could help that would be AWESOME.

Thanks
 
Old 05-26-2014, 04:18 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Hi ahaurum,

Quote:
" plus a bunch of other stuff
I think it's probably the other stuff we'd need to see. Somewhere, probably either directly above or below that line, it will tell you why.
That said, on a raspberry especially, you probably don't want to spawn a window manager, it's just consuming clock cycles and adding an extra layer of complexity. Run it natively in a tty

Last edited by dijetlo; 05-26-2014 at 04:20 PM.
 
Old 05-26-2014, 04:30 PM   #3
ahaurum
LQ Newbie
 
Registered: May 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Picture of the error

Attached is a picture of my error. You can look it over and tell me what you think. Remember that this is in the newbie category so I'm not exactly sure what a tty is. Just have a look at this image and tell me what I'm doing wrong.
Attached Thumbnails
Click image for larger version

Name:	image.jpg
Views:	130
Size:	262.7 KB
ID:	15609  
 
Old 05-26-2014, 04:46 PM   #4
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
unable to handle kernel paging request...
Looks like a memory leak.
Try to recompile it and look for ways to improve it's page fault handling, their may be optional switches or dependencies you're missing...or it may just not run on raspberry pi.
 
Old 05-26-2014, 04:59 PM   #5
ahaurum
LQ Newbie
 
Registered: May 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Ah okay, when I first compiled it I had somebodies help, now they are gone so I'm not sure how to compile it again. Is there some website I can refer to or can you maybe give me the steps to recompile it?
 
Old 05-26-2014, 05:25 PM   #6
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Hi again ahaurum,

Quote:
Is there some website I can refer to ?
Just the one you got the code from.
 
Old 05-27-2014, 11:33 AM   #7
ahaurum
LQ Newbie
 
Registered: May 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dijetlo View Post
Hi again ahaurum,


Just the one you got the code from.

Unfortunately that source is now unavailable.
 
Old 05-27-2014, 11:49 AM   #8
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Hey Arum

The steps are simple, ./configure -> make but typing the commands in isn't your problem, it's troubleshooting the code. You have a memory leak you have to resolve.
The software packs are still available from sourceforge, you could go there, read the documentation and give it a shot, or you could contact their developers, maybe they've seen this before, but to just pick up some random code that runs on a platform I don't have access to and troubleshoot it?
That could be a road with no end, I'm not headed that way.
Sorry, good luck
 
Old 05-27-2014, 12:33 PM   #9
ahaurum
LQ Newbie
 
Registered: May 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dijetlo View Post
Hey Arum

The steps are simple, ./configure -> make but typing the commands in isn't your problem, it's troubleshooting the code. You have a memory leak you have to resolve.
Yeah, do you think I might find some answers just by googling? like: Raspberry pi memory leak fix
 
Old 05-27-2014, 12:36 PM   #10
ahaurum
LQ Newbie
 
Registered: May 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hold on, is it that I've kept it on too much and that causes a memory leak because I am using too much memory?! I just had that idea by looking at this forum post: http://www.raspberrypi.org/forums/vi...p?f=66&t=16850 If so, maybe I just attatch a flash drive or passport.
 
Old 05-27-2014, 01:44 PM   #11
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
Hold on, is it that I've kept it on too much and that causes a memory leak because I am using too much memory
You can try rebooting it intermittently (in fact, based on what your telling me, that seems the only fix available to you right now).
Quote:
If so, maybe I just attatch a flash drive or passport.
That wont help, it's a question of memory allocation at the kernel level (google malloc for a better idea what's going on.)
 
Old 05-27-2014, 02:42 PM   #12
ahaurum
LQ Newbie
 
Registered: May 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dijetlo View Post
You can try rebooting it intermittently (in fact, based on what your telling me, that seems the only fix available to you right now)
I have rebooted several times when it gives me the error, in fact once it gives me the error the screen freezes so I have to reboot. With that said I have not tried rebooting intermittently. Do you mean that I would reboot while cgminer is running before the error or at other random times? Also, I thought you said that I could recompile sgminer but now you are saying that the only fix is to keep rebooting. There must be a permanent fix to this error.
 
Old 05-27-2014, 05:24 PM   #13
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
Do you mean that I would reboot while cgminer is running before the error or at other random times?
I have no idea.

ahaurum, one has to wonder what possible profit your going to see from this configuration of hardware and software, maybe it's just time to turn it back into a home entertainment system or whatever it was before you decided to try to make it a bit coin miner.
 
Old 05-27-2014, 05:46 PM   #14
ahaurum
LQ Newbie
 
Registered: May 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
I have been asked this many times before and but you have to appreciate that this is a project for me and my goal is not to come out with a profit. (Although I have done research and I think that I will after some time). This is an experiment for me, and something that I enjoy working on. Not something that I am trying to use as a money maker. I enjoy working on this and my main goal is to learn more about Linux and cgminer.

Here is what I think my future steps are after your input:

- try rebooting several times, if that doesn't work...
- recompile sgminer
 
Old 05-27-2014, 05:57 PM   #15
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
you have to appreciate that this is a project for me
Then the first step is learn to program in C so you can fix your memory leak.
As a rule, a lot of people in Linux can code in C . I'd say most of us can to one extend or another, but the joy of coding in C is what you can make with that code, not the endless hours of typing.
A bit coin miner for Ahaurum?
I'm not feeling the joy....
Now if you want to pay for it, which would be appropriate here since this is your for profit venture, I'm sure you can find somebody to help you...but...I think you might understand why nobody is jumping up here to say "I'll do it", right?

Good luck with your project.

Last edited by dijetlo; 05-27-2014 at 06:01 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] iptables issue - site stops responding after an hour resave Linux - Networking 3 05-14-2011 03:28 PM
Totem Stops Playing DVDs After An Hour - On Any DVD - Help ! taurusx5 Linux - Software 1 08-17-2008 08:16 PM
Keyboard stops working after an hour or two cartwright Linux - Newbie 3 11-20-2005 04:08 PM
Cable modem stops working after an hour of connectivity thepaemon Linux - Networking 2 05-31-2004 03:38 PM
wifi stops after an hour or two thegreatgatsby Linux - Wireless Networking 5 01-22-2004 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration