bitpop
Legendary
Offline
Activity: 2912
Merit: 1060
|
|
June 03, 2013, 12:55:50 AM |
|
3.1.1 used very little and confirmed it by seeing total cpu usage. 3.2 looks like its using 50% by itself with another 20% by system interrupts or drivers of some sort I just noticed, cgminer 3.2 uses massive CPU. I'm runing 20 lancelots and cgminer is using over 70% on a i7-3770.
What did 3.1.1 use, and is there a way on windows to see what system time the (ftdi) driver is using? The CPU usage of drivers is often hidden from you.
|
|
|
|
Rant2112
Newbie
Offline
Activity: 70
Merit: 0
|
|
June 03, 2013, 01:34:39 AM |
|
Got it working!
I went back to cgminer 3.1.1 and used the -S option to tell it where to look.
I'll play with the other settings now and see if I can get it running without root, etc. ...
As per the ASIC-README for 3.2.0 LINUX:
On linux, the direct USB support requires no drivers at all. However due to permissions issues, you may not be able to mine directly on the devices as a regular user without giving the user access to the device or by mining as root (administrator). In order to give your regular user access, you can make him a member of the plugdev group with the following commands: ...
Read the rest Edit: there's a bit about "sudo cp 01-cgminer.rules /etc/udev/rules.d/" further down to complete the solution to solve permission problems I'm fairly certain that I understand the permission issue. As I said in a later post I have set the udev rules so that the USB device is owned by the plugdev group (and I'm in plugdev as well). My later post has some more details with the --usb-dump output: https://bitcointalk.org/index.php?topic=28402.msg2353037#msg2353037It isn't showing a permission issue now - ttyUSB0 is removed when cgminer starts and cgminer 3.2 doesn't find any devices to mine with. If I start cgminer 3.2 and then plug in the miner afterwards it is disconnected immediately and cgminer doesn't see it.
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4242
Merit: 1644
Ruu \o/
|
|
June 03, 2013, 01:38:19 AM |
|
It isn't showing a permission issue now - ttyUSB0 is removed when cgminer starts and cgminer 3.2 doesn't find any devices to mine with.
If I start cgminer 3.2 and then plug in the miner afterwards it is disconnected immediately and cgminer doesn't see it.
Not that this is the cause of your problems, but it's worth nothing that ttyUSB0 is being removed by 3.2.0 because cgminer doesn't want that driver there any more, so it being removed is normal.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
Rant2112
Newbie
Offline
Activity: 70
Merit: 0
|
|
June 03, 2013, 02:02:32 AM |
|
Also, cgminer 3.2 does NOT work if I 'su root' either. I don't think it is the permission problem.
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4242
Merit: 1644
Ruu \o/
|
|
June 03, 2013, 02:03:24 AM |
|
Also, cgminer 3.2 does NOT work if I 'su root' either. I don't think it is the permission problem.
USB3 ?
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
Rant2112
Newbie
Offline
Activity: 70
Merit: 0
|
|
June 03, 2013, 02:29:47 AM |
|
Also, cgminer 3.2 does NOT work if I 'su root' either. I don't think it is the permission problem.
USB3 ? 99% no. My computer is too old for that. How do I check?
|
|
|
|
Krak
|
|
June 03, 2013, 02:44:48 AM |
|
Also, cgminer 3.2 does NOT work if I 'su root' either. I don't think it is the permission problem.
USB3 ? 99% no. My computer is too old for that. How do I check? Is the flat piece inside of the port blue? USB 2.0 is usually black or red, USB 3.0 is always (as far as I know) blue.
|
BTC: 1KrakenLFEFg33A4f6xpwgv3UUoxrLPuGn
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4242
Merit: 1644
Ruu \o/
|
|
June 03, 2013, 03:24:24 AM |
|
3.1.1 used very little and confirmed it by seeing total cpu usage. 3.2 looks like its using 50% by itself with another 20% by system interrupts or drivers of some sort I just noticed, cgminer 3.2 uses massive CPU. I'm runing 20 lancelots and cgminer is using over 70% on a i7-3770.
What did 3.1.1 use, and is there a way on windows to see what system time the (ftdi) driver is using? The CPU usage of drivers is often hidden from you. Windows normally uses low resolution timers and perhaps it's related to us trying to use high resolution timers with these new drivers. Can you try one of the .exes in: http://ck.kolivas.org/apps/cgminer/temp/to see if it makes any difference to CPU usage please?
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
bitpop
Legendary
Offline
Activity: 2912
Merit: 1060
|
|
June 03, 2013, 03:50:54 AM |
|
About 5-10% better still over 60% Also I have problems with 2 instances. Running the 17 fpga instance before a 3 crashes the 3. 3.1.1 used very little and confirmed it by seeing total cpu usage. 3.2 looks like its using 50% by itself with another 20% by system interrupts or drivers of some sort I just noticed, cgminer 3.2 uses massive CPU. I'm runing 20 lancelots and cgminer is using over 70% on a i7-3770.
What did 3.1.1 use, and is there a way on windows to see what system time the (ftdi) driver is using? The CPU usage of drivers is often hidden from you. Windows normally uses low resolution timers and perhaps it's related to us trying to use high resolution timers with these new drivers. Can you try one of the .exes in: http://ck.kolivas.org/apps/cgminer/temp/to see if it makes any difference to CPU usage please?
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4242
Merit: 1644
Ruu \o/
|
|
June 03, 2013, 03:56:31 AM |
|
About 5-10% better still over 60% Also I have problems with 2 instances. Running the 17 fpga instance before a 3 crashes the 3.
Well I don't think that's the cause then if it's only 5%. We'll investigate further. Meanwhile, if you're reliably getting a crash, can you use a debug build to see what crashes? http://ck.kolivas.org/apps/cgminer/debug/The instructions for getting a debug output are in that directory. Thanks!
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
bitpop
Legendary
Offline
Activity: 2912
Merit: 1060
|
|
June 03, 2013, 03:58:38 AM |
|
Yes reliably. Will post tomorrow. It gets tiresome using rdp on my phone.
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4242
Merit: 1644
Ruu \o/
|
|
June 03, 2013, 04:01:26 AM |
|
Yes reliably. Will post tomorrow. It gets tiresome using rdp on my phone.
No rush. We greatly appreciate the debugging but take your time. This is the unfortunate cost of such heavy development, and we're heavily dependent on users testing scenarios we can't reproduce ourselves.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
bitpop
Legendary
Offline
Activity: 2912
Merit: 1060
|
|
June 03, 2013, 04:06:29 AM |
|
How do you accomplish system wide knowledge of usb devices? Are you writing a file somewhere or in shared memory somehow? Because the instances do fail at finding the devices when they count to usb whatever even though they should already know.
Ps I thought a mod split the thread but I guess not lol
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4242
Merit: 1644
Ruu \o/
|
|
June 03, 2013, 04:10:56 AM |
|
How do you accomplish system wide knowledge of usb devices? Are you writing a file somewhere or in shared memory somehow?
Ps I thought a mod split the thread but I guess not lol
Yes a file and shared memory on linux, and a named mutex on windows with the device name based on the usb bus and device address. A mod got rid of some trolling and associated discussions, but the troll does not stop stalking this thread and reappearing.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4242
Merit: 1644
Ruu \o/
|
|
June 03, 2013, 04:48:00 AM |
|
How do you accomplish system wide knowledge of usb devices? Are you writing a file somewhere or in shared memory somehow?
Ps I thought a mod split the thread but I guess not lol
Yes a file and shared memory on linux, and a named mutex on windows with the device name based on the usb bus and device address. A mod got rid of some trolling and associated discussions, but the troll does not stop stalking this thread and reappearing.
Like I was saying
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
yantis
Member
Offline
Activity: 110
Merit: 11
|
|
June 03, 2013, 07:36:41 AM Last edit: June 03, 2013, 08:01:27 AM by yantis |
|
Edited this post out - The developer of this software already saw it so no need for it anymore.
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4242
Merit: 1644
Ruu \o/
|
|
June 03, 2013, 07:39:57 AM |
|
Has anyone had any luck getting this to work with ASIC Miner USB block erupters on Arch Linux. I have tried both a PC and Raspberry PI (minepeon image) and the latest version doesn't work.
More information would help. What does "doesn't work" mean? Did you follow the new instructions for 3.2.0 in the ASIC-README? Please, the picture burns my eyes. Take it down.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
yantis
Member
Offline
Activity: 110
Merit: 11
|
|
June 03, 2013, 07:49:58 AM |
|
Going to go read the README again and double check just to make 100% sure.
|
|
|
|
yantis
Member
Offline
Activity: 110
Merit: 11
|
|
June 03, 2013, 07:56:23 AM |
|
Does the README_ASIC apply to the USB Block Erupters since its Icarus based?
The problem I have is it doesn't detect any USB devices. This could be user error as I compiled with just Icarus support.
|
|
|
|
-ck (OP)
Legendary
Offline
Activity: 4242
Merit: 1644
Ruu \o/
|
|
June 03, 2013, 08:01:57 AM |
|
Does the README_ASIC apply to the USB Block Erupters since its Icarus based?
The problem I have is it doesn't detect any USB devices. This could be user error as I compiled with just Icarus support.
Everything is direct USB based now, and apologies if it does not expressly say so in the ASIC README, but the advice about permissions and plugdev applies to every USB device now, ASIC and FPGA. Building Icarus in should be enough for them to work.
|
Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel 2% Fee Solo mining at solo.ckpool.org -ck
|
|
|
|