-
m-relay
<stonekell:matrix.org> Hello all... I am new to mining crypto... my computer seems to be struggling with CPU power, my Monero wallet / daemon are now properly synced, however Gupax is not working though... dunno whats to be done here... are there modifications via command lines that will make best use of my setup?
-
Cindy
how much RAM do you have
-
Cindy
and what is your CPU
-
m-relay
<stonekell:matrix.org> System 76 linux:
-
m-relay
-
Cindy
when will they fix matrix attachments for the IRC bot
-
m-relay
<stonekell:matrix.org> ?
-
testone
is it known how to modify the link to read the content?
-
m-relay
<stonekell:matrix.org> can you see my attached image?
-
testone
␌tonekell: matrix␌long msgs and similar arrive here as link, but they are all 404
-
testone
-
m-relay
<alexandre:uii.pt> (image has i7-10710U with 64GB)
-
Cindy
oh thank you for describing the image
-
Cindy
but that.. shouldn't stop Gupax
-
Cindy
is p2pool and xmrig on?
-
m-relay
<stonekell:matrix.org> yes m-relay they are on. I can copy paste relevant gupax message lines... if'n you would like...
-
Cindy
can you check both xmrig's logs and p2pool's logs?
-
Cindy
oh oh!
-
Cindy
maybe p2pool is busy syncing up the blockchain!
-
m-relay
-
Cindy
.... another description please?
-
m-relay
<stonekell:matrix.org> it won't let me copy / paste info from gupax interface...
-
m-relay
<basses:matrix.org> p2pool couldn't start ZMQ reader
-
m-relay
<alexandre:uii.pt> failed to connect to 127.0.0.1:18083, did you setup your local node properly?
-
m-relay
<stonekell:matrix.org> here is gupax XMRig page:
-
m-relay
-
Cindy
if you're not using a local node, then use a remote one
-
m-relay
<basses:matrix.org> Monero address shouldn't be empty?
-
Cindy
address in p2pool shouldn't be empty, yeah
-
Cindy
but is your localnode working?
-
m-relay
<stonekell:matrix.org> my local node is my monero wallet GUI, set to solo mining and all synced up with chain itself, Gupax has proper primary asddress. damn my computer is very slow...
-
Cindy
uhhhh
-
Cindy
that's not how it works
-
m-relay
<alexandre:uii.pt> if you are gonna use p2pool/gupax then you shouldn't be running solo mining, you have to enable zmq
-
Cindy
configure monero wallet GUI to use a local node
-
Cindy
don't use solo mining within wallet GUI
-
m-relay
<stonekell:matrix.org> like i said... brand new to all of this...
-
m-relay
-
m-relay
<alexandre:uii.pt> *docs
-
m-relay
<stonekell:matrix.org> ok,
-
Cindy
also btw
-
Cindy
how much space do you have
-
Cindy
in your computer
-
Cindy
and are you running on a HDD or SSD?
-
m-relay
<ofrnxmr:xmr.mx> Did u do what i said yesterday
-
m-relay
<stonekell:matrix.org> i don't always understand what is being said in these guides. not crypto savvy. i'll go look though...
-
Cindy
depending on your drive, it might be unfeasible to run a local node
-
Cindy
or not
-
m-relay
<stonekell:matrix.org> that's what i'm wondering too...
-
m-relay
<ofrnxmr:xmr.mx> I told you what 2 do yesterday
-
Cindy
if you have a few gigabytes, you can run a pruned blockchain, but if you have a HDD, it's probably best you don't runa local node
-
Cindy
get away with a pruned blockchain*
-
m-relay
<ofrnxmr:xmr.mx> cindy, my understanding is that stone is already running a node via monero gui
-
m-relay
<ofrnxmr:xmr.mx> And is already synced
-
m-relay
<stonekell:matrix.org> how do i enable ZMQ?
-
m-relay
<stonekell:matrix.org> correct, ofrnAI
-
m-relay
<alexandre:uii.pt> read the doc I sent... it's quite straightforward, even has a picture
-
m-relay
<ofrnxmr:xmr.mx> That doc wont help with gui
-
m-relay
<ofrnxmr:xmr.mx> I sent instruction yesterday
-
m-relay
<ofrnxmr:xmr.mx> let me scroll and find it
-
m-relay
<alexandre:uii.pt> no? it shows how to enable it on the gui 🤔 then it should be fixed if it doesn't work
-
m-relay
<elongated:matrix.org> Enter --zmq-pub=tcp://127.0.0.1:18083 into Daemon startup flags
-
m-relay
<ofrnxmr:xmr.mx> thanks elongated
-
m-relay
<stonekell:matrix.org> ok, flag entered... my wallet is connected, no longer mining since i swithed it P2Pool
-
m-relay
<ofrnxmr:xmr.mx> Dont do anything on the mining tab in gui
-
m-relay
<stonekell:matrix.org> should I start up mining again?
-
m-relay
<ofrnxmr:xmr.mx> no, not with gui
-
m-relay
<ofrnxmr:xmr.mx> Start mining using gupax
-
m-relay
<ofrnxmr:xmr.mx> After entering flag, you should stop -> start the daemon (in gui)
-
m-relay
<stonekell:matrix.org> ok... is that going to take hours to sync once I restart, like it did yesterday?
-
m-relay
<stonekell:matrix.org> Thank you all for your help! I'm taking notes.
-
m-relay
<ofrnxmr:xmr.mx> No
-
m-relay
<ofrnxmr:xmr.mx> A few seconds
-
m-relay
<stonekell:matrix.org> ok, did it. seems to just restart automatically. sticll connected. now goto gupax?
-
m-relay
<stonekell:matrix.org> ok, here's scrn shot of gupax after gui daemon restart...
-
m-relay
-
m-relay
<stonekell:matrix.org> Everyone's gone quiet. hope I didn't upset anyone. not sure where else to turn for advice... I'll go read guides / research. don't mean to take up all your time.
-
Cindy
i wish i could help
-
Cindy
but i can't look at matrix attachments
-
m-relay
<stonekell:matrix.org> hmm, gupax won't let me copy n paste info. maybe I should set wallet to remote node? unsure. i'll go research.
-
m-relay
<stonekell:matrix.org> or, just mine with wallet, not gupax.
-
m-relay
<ofrnxmr:monero.social> No, just that time of day
-
m-relay
<ofrnxmr:monero.social> What are the rest of your p2pool settings
-
m-relay
<ofrnxmr:monero.social> (In gupax)
-
Cindy
i wonder what happens if monero starts associating your private spend key with mining
-
Cindy
like wownero
-
Cindy
to completely kill off pools
-
m-relay
<ofrnxmr:xmr.mx> The same thing that happens in wownero. botnets become solo-miners
-
Cindy
but honestly i doubt qubic will take over shit
-
Cindy
you think the amount of people who use monero, and they'd let some memey cryptobro try to take over?
-
Cindy
he should probably quit while he still can, because there are people he's not gonna want to piss off
-
m-relay
<modul8:matrix.org> It would be good if gupax can handle this or tell you how to start monerod for p2pool mining.
-
gleepglorp
Is there any way to get a GPU to mine monero?
-
m-relay
<ravfx:xmr.mx> Yeah, xmrig support opencl and cuda
-
m-relay
<ravfx:xmr.mx> But you are going to waste a lot of power for not much
-
m-relay
<ravfx:xmr.mx> my Radeon RX 9070XT is equivalent to what? 2 CPU cores while taking 220W
-
m-relay
<ravfx:xmr.mx> and I can mine with 32 thread with ~100W
-
m-relay
<ravfx:xmr.mx> soooo
-
m-relay
<ravfx:xmr.mx> Use the GPU if you want but know that it's extremely inneficient to do so (by design)
-
Cindy
i don't think you should start monerod, p2pool and xmrig all on the same computer
-
Cindy
monerod has its own RandomX verification code, p2pool too, and xmrig also needs memory for RandomX
-
Cindy
unless you have enough RAM for all that, split between servers
-
Cindy
(i think p2pool can offload RandomX verification to the monero node, but still)
-
m-relay
<kufecure:xmr.se> hi there, which mobile monero wallet is reproducible?
-
m-relay
<fijxu:nadeko.net> what do you mean with reproducible?
-
m-relay
<fijxu:nadeko.net> like NixOS or what
-
m-relay
<fijxu:nadeko.net> lol
-
m-relay
<fijxu:nadeko.net> MONERO WALLET, PLAY MUSIC
-
m-relay
<fijxu:nadeko.net> sory
-
m-relay
<basses:matrix.org> none
-
m-relay
<17lifers:matrix.org> they can't do that
-
m-relay
<17lifers:matrix.org> xd
-
m-relay
<basses:matrix.org> quite sad, worrying that no one could do it
-
m-relay
<17lifers:matrix.org> lmao
-
m-relay
<eddie:oblak.be> is that not it a piece of cake? 😬
-
m-relay
<fijxu:nadeko.net> PIECE OF CAKE?
-
m-relay
<17lifers:matrix.org> i want some
-
m-relay
<17lifers:matrix.org> mmm
-
quantum`
So mining as an unprived user, 'monero', that wallet can not be also accessed by my regular user? As the monero user has his own dir with the wallet files, they cannot be accessed locally much less over the LAN?
-
quantum`
Ah, don't worry about me anymore. I've got it.
-
Cindy
i had a question related to this
-
Cindy
is it really recommended to run XMRig as root?
-
quantum`
Certainly not from a security standpoint. But it is necessary to set CPU MSRs and a couple other things.
-
Cindy
XMRig has seperate scripts for setting the CPU MSRs and hugepages manually
-
Cindy
can i run those as root, and then XMRig as non-root?
-
Cindy
(if they still work)
-
quantum`
Seems plausible. The main thing is turning -off- CPU Prefetch (thru MSR). Personally I did this in BIOS under Advanced.
-
quantum`
Prefetch plays havoc with the XRandom algo.
-
quantum`
Can also set hugepages to 1GB in /etc/sysctl.d/whateveryourfilenameis.
-
Cindy
1GB really depends on how much RAM you have
-
quantum`
Ya I have 64GB and that's what it wants.
-
m-relay
<ofrnxmr:xmr.mx> "<Cindy> is it really recommended to run XMRig as root?" < yes
-
m-relay
<ofrnxmr:xmr.mx> "<Cindy> can i run those as root, and then XMRig as non-root?" < yes
-
quantum`
Citation?
-
m-relay
<ofrnxmr:xmr.mx> I know you're not talking to me (?)
-
quantum`
Why yes, I am. Recommending ppl set to run as root.
-
m-relay
<ofrnxmr:xmr.mx> Put me back on your ignore list 💢💢💢
-
Cindy
i like to reduce the attack surface though
-
Cindy
XMRig does not need root after the initial CPU setup
-
quantum`
Good move.
-
Cindy
i'd like it if XMRig had an option to run itself as unprivileged after setting up the CPU registers automatically
-
Cindy
like how browsers usually run child processes
-
quantum`
Depends on how you run it. If in Gupaxx it slams you into sudo, which I never use. If on CLI you're free to decide.
-
Cindy
i know it's easier and convenient to give XMRig unrestricted root access lol
-
quantum`
# su monero && xmrig ...etc.
-
quantum`
And ofrnxmr: you did it to yerself, kid.
-
quantum`
Huh, I wonder whether /dev/hugepages must be writable by the xmrig process?
-
m-relay
<ofrnxmr:xmr.mx> I did what? Un-ignored myself?
-
Cindy
quantum`: hugepages can be allocated without root
-
Cindy
using madvise
-
Cindy
but you need to set the kernel parmeters to enable them
-
quantum`
I'm researching how to set the size in sysctl.d. I can set the number with vm.nr_hugepages = 3072.
-
quantum`
Another question though is does xmrig need rights to /dev/hugepages?
-
Cindy
that would need a review of the source code, but i dobut it
-
Cindy
since it doesn't need to share the memory... since it's one process
-
quantum`
I am finding only a kernel param way of setting hugepage size. I guess this makes sense.
-
quantum`
If I give the VM 48GB I should be safe allocating 40 hugepages of 1GB.
-
quantum`
Idk how to tell whether you're memory-constrained while mining.
-
Cindy
maybe you can tell by the fact if it uses swap
-
Cindy
or if it fails to allocate, you need to disable memory overcommitment
-
Cindy
for this though
-
quantum`
I'll be darned, it actually booted...
-
Cindy
booted without root?
-
quantum`
No I made some mods to the kernel commandline tweaking hugepages
-
Cindy
ah
-
quantum`
Checking...
-
quantum`
It twerked! # cat /proc/meminfo | grep Huge
-
quantum`
Now, has hashing improved?
-
Cindy
xmrig has a shell script that sets CPU registers
-
Cindy
you should run that as root too, as see if xmrig works as-is without sudo
-
quantum`
I've allocated 48GB to the KVM VM and set: hugepagesz=1G hugepages=25 default_hugepagesz=1G
-
Cindy
ooh
-
Cindy
tbh i thought 1GB hugepages only provided like
-
Cindy
tiny benefits to the hashrate
-
quantum`
Oops the number should have been 40, but my sysctl.d file fixed that.
-
quantum`
I can take out that sysctl entry since I've fixed the kernel line.
-
quantum`
If you're memory-constrained I've gotta think it makes a big diff.
-
quantum`
I discovered I'd allocated only 16GB with 55 CPUs.
-
quantum`
syncing...
-
quantum`
Ok, HUGE PAGES supported, but 1GB PAGES disabled, running as unprived user.
-
quantum`
Ok, HUGE PAGES supported, but 1GB PAGES disabled, running as unprived user.
-
quantum`
No change in hashing speed. It must be only using 8GB of RAM.
-
quantum`
Trying as root...
-
m-relay
<ofrnxmr:xmr.mx> Diary, when?
-
quantum`
Huh, 1GB HUGEPAGES still not supported. (as root)
-
sech1
Check if your CPU supports them
-
Cindy
sech1: is it a specific CPU extension?
-
sech1
cat /proc/cpuinfo | grep 1gb
-
sech1
Yes, cpu reports it
-
sech1
Don't remember the exact name, but it has 1gb in it
-
Cindy
pdpe1gb
-
Cindy
-
sech1
You should try to enable them in grun, and allocate 3 pages
-
sech1
grub
-
Cindy
i mean, since quantum` is running in KVM
-
Cindy
if they switch off KVM, and emulate pdpe1gb, it could work
-
Cindy
(but worse hashrate)
-
quantum`
Need to set "1gb-pages": true, in xmrig json file.
-
quantum`
And maybe huge-pages-jit.
-
quantum`
-
Cindy
can you check /proc/cpuinfo
-
quantum`
-
quantum`
I'v pinned CPUs so they're not thrashing cache.
-
quantum`
... and turned off Prefetch in the host's BIOS.
-
quantum`
CPU is passthrough to the guest.
-
quantum`
Fixin' to try my shiny new .json...
-
Cindy
okay i see pdpe1gb in the flags
-
quantum`
Oops, crash on "coin"...
-
quantum`
Apparently monero is invalid.
-
quantum`
HA, just needed double-quotes.
-
quantum`
Rockin' HUGEPAAGES now.
-
quantum`
GODDAM, TRIPLED my hashrate! And still using only half the CPUs for some reason.
-
Cindy
how much is your hashrate now :P
-
quantum`
54 CPUs, 10,111 H/s.
-
quantum`
... nd using only half my CPU capacity for some reason.
-
Cindy
that is like 187 H/s per CPU
-
Cindy
which is weird
-
Cindy
is your CPU designed like a GPU?
-
Cindy
like more cores but each one weaker?
-
quantum`
No, standard server. (EPYC). top shows CPU 2,907%
-
quantum`
Oh, could be disk-bound. Rotating drive.
-
quantum`
Wow, what a difference though.
-
Cindy
it shouldn't be disk bound
-
Cindy
unless you have swap
-
Cindy
in fact, mining doesn't use the disk at all
-
quantum`
Turned off swap, intending to move to RAM but never got to it.
-
Cindy
well that should be the issue
-
quantum`
You're right, iotop shows the disk hardly used.
-
quantum`
... and I'm mining as non-prived user monero.
-
quantum`
So now I have some new mysterious constraint.
-
quantum`
The CPU can run full-bore standing on its head, with the large eatsink I have.
-
Cindy
also btw
-
Cindy
did you set the MSR registers?
-
quantum`
No, haven't bothered as I thought that is all about prefetch.
-
Cindy
ah
-
Cindy
well fair
-
quantum`
Rebooting to get swap...
-
quantum`
Oops, no mo' swap part.
-
quantum`
Gotta research frickin' swap in RAM...
-
Cindy
swap.. in RAM
-
» Cindy imagines a ramdisk with a swap partition on it
-
quantum`
Yup, dun did it befo', gotta re-learn now.
-
quantum`
"Note that there are kernel modules Zram and Zswap which allows compressing the swap inside RAM. Zram does not need any physical swap device."
-
quantum`
-
quantum`
Well that was easy. # aptitude install zram-tools systemd-zram-generator
-
Cindy
zram is gonna slow down your hashrate :P
-
Cindy
since it needs CPU to decompress and compres
-
quantum`
IF it were using swap, which it shouldn't.
-
Cindy
zram still needs CPU to decompress the compressed RAM
-
quantum`
zram has no appreciable effect on hashrate.
-
quantum`
Only when it's used tho, right?
-
Cindy
yeah, only when the compressed memory is used
-
quantum`
Oh sure, it says, "FAILED TO APPLY MSR MOD, HASHRATE WILL BE LOW", but it doesn't really mean it.
-
quantum`
free -h shows zero swap used.
-
Cindy
did you benchmark hashrate between zram and no zram?
-
quantum`
Essentially. I remember what it was before, and now.
-
quantum`
It's a hair lower: 10,613
-
quantum`
Still not using half my CPU.
-
quantum`
Ok stopped /dev/zram0. (systemctl stop /dev/zram0)
-
quantum`
Uhnh, 10,447 now
-
quantum`
Something is mightily constraining my bandwidth. Maybe htop will advise...
-
ruidx
I have a question about shares diff, I have xmrig-proxy connected to p2pool, p2pool gives to high diff, I set it manually for each miner, so shares happen approx. once per ~30 secs, I have no idea what I'm doing but I read somewhere it should be like this (ideally 1 share per 30 secs)?
-
ruidx
should have asked in monero-mining I guess
-
quantum`
Found it.
-
sech1
ruidx p2pool auto-adjusts diff, and you don't need xmrig-proxy to connect to p2pool
-
sech1
but yes, one share per 30 seconds is fine
-
ruidx
nice, I just have a little UI for xmrig-proxy using http api, like to watch tables with stats :)
-
m-relay
<17lifers:matrix.org> scam alert - fake tradeogre website
ibb.co/xq94WCjS
-
home
homer
-
ruidx
simpson
-
testone
I cannot find it in english, but this was the scene -->
inv.nadeko.net/watch?v=vokA5OpKaQA
-
m-relay
-
m-relay
<basses:matrix.org> Monero was the highest donation
-
m-relay
<17lifers:matrix.org> as it should be.
-
m-relay
<basses:matrix.org> Monero has always been #1 biggest supporter to FOSS projects
-
m-relay
<17lifers:matrix.org> rip to those who paid with eth and btc
-
m-relay
<17lifers:matrix.org> theyre logged and will be hunted down at some point by any such entity
-
m-relay
<eddie:oblak.be> Anyone here know this guy?
youtube.com/@ShadowofAtlas He references XMR sometimes. I am not sure if all he says makes sense, but it's entertaining content anyway.