# Linux singer 6.12.40-0-lts x86_64 # /dev/shm and /tmp are tmpfs # as user, nsm here: # touch /dev/shm/mempool.dat.new # as root: # cd /home/nsm/.bitcoin # mount -o rw,bind /dev/shm/mempool.dat.new mempool.dat.new # everything else here that follows # is run as an unprivileged user + date -u Mon Sep 15 02:32:34 UTC 2025 + head -1 + bitcoind -version Bitcoin Core daemon version v29.99.0-5103a96f40b7 + bitcoin-cli echo hello + grep . [ "hello" ] + mountpoint /home/nsm/.bitcoin/mempool.dat.new /home/nsm/.bitcoin/mempool.dat.new is a mountpoint + bitcoin-cli getmempoolinfo + nicecat.sh /tmp/gmi-main.json { "loaded": true, "size": 65980, "bytes": 41674100, "usage": 231069696, "total_fee": 0.07442830, "maxmempool": 300000000, "mempoolminfee": 0.00000001, "minrelaytxfee": 0.00000001, "incrementalrelayfee": 0.00000001, "unbroadcastcount": 0, "fullrbf": true, "permitbaremultisig": true, "maxdatacarriersize": 512 } + : following is getrawmempool, just shortened + grm.sh + safecat.sh /dev/shm/mymempool.txt + : Following non-zero exit is intended. + : On bitcoind side it looks like this: + : Failed to dump mempool: Rename failed. Continuing anyway. + time bitcoin-cli savemempool error code: -1 error message: Unable to dump mempool to disk Command exited with non-zero status 1 real 0m 1.01s user 0m 0.00s sys 0m 0.00s + f=/dev/shm/mempool.dat.new + t=/dev/shm/mempool.dat.tmp + cp /dev/shm/mempool.dat.new /dev/shm/mempool.dat.tmp + : UNIX fixes this, file descriptor stays + : i n memory when used even after file was + : successfully unlinked from filesystem + : GNU is Not Unix anyway + mv /dev/shm/mempool.dat.tmp /dev/shm/mempool.copy + ln -s /dev/shm/mempool.copy /dev/shm/mempool.copy.dat ln: failed to create symbolic link '/dev/shm/mempool.copy.dat': File exists + cd /dev/shm + ls -ilh mempool.copy mempool.dat.new 554583 -rw-r--r-- 1 nsm nsm 124M Sep 15 02:32 mempool.copy 152 -rw-r--r-- 1 nsm nsm 124M Sep 15 02:32 mempool.dat.new + cd /home/nsm/web/ln + ls -l mymempool-log.txt mymempool.dat mymempool.txt mymempoolhere.sh.txt lrwxrwxrwx 1 nsm nsm 22 Feb 21 2025 mymempool-log.txt -> /dev/shm/mymempool.log lrwxrwxrwx 1 nsm nsm 21 Dec 10 2024 mymempool.dat -> /dev/shm/mempool.copy lrwxrwxrwx 1 nsm nsm 22 Feb 18 2025 mymempool.txt -> /dev/shm/mymempool.txt -rwx------ 1 nsm nsm 1445 May 14 16:46 mymempoolhere.sh.txt + date -u Mon Sep 15 02:32:36 UTC 2025