I’ve been seeing some high bandwidth usage in my ipfs-coord network. I’ve been trying to debug it. I’ve been using the stats.bw() and bitswap.stat() calls. The bitswap.stat()
call in particular is showing high duplicate data and block count. This collaborates other data I’ve seen, where the bandwidth consumption is high, but the /blocks
directory does not gain much in size.
Here is the output of bitswap.stat()
:
bitswap stats: {
provideBufLen: 0,
blocksReceived: 9907n,
wantlist: [
CID(zdpuAzCjEntqXaNzEZ78u7RauX4PJhxEcrj8HZQM4MQgJNM9T),
CID(zdpuB2T9dYZKrTRfSZNC6jYLE8v5t4av5ouzwdywkmYZ9UwhC)
],
peers: [
'QmcewynF2DMxuvK7zk1E5es1cvBwZrfnYEaiN995KVYaKp',
'Qmbut9Ywz9YEDrz8ySBSgWyJk41Uvm2QJPhwDJzJyGFsD6',
'QmXbyd4tWzwhGyyZJ9QJctfJJLq7oAJRs39aqpRXUAbu5j',
'QmXvT9Tn5VbFU4kGobEt8XS2tsyfjohAzYNa4Wmv8P6pzV',
'QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ',
'QmZMxNdpMkewiVZLMRxaNxUeZpDUb34pWjZ1kZvsd16Zic',
'QmXtHADckCmT6jodpAgn3TcDQWjC29gQd2fKKHDTpo8DJT',
'QmY7JB6MQXhxHvq7dBDh4HpbH29v4yE9JRadAVpndvzySN',
'QmWPfWgbSjPPFpvmS2QH7NPx14DqxMV8eGAUHLcYfyo1St',
'QmQk4hMCm5Y2ix7dLzq6ptSP7Y88GK6utSAfgwX5PEw6Ka',
'QmUTx6KqYKVZbKpKxR7vGDUgZFYVvVVyEWDeCYq4GwBCff',
'QmXX7hSXUpMoeyFZ3NbWJ8Qb4j9iFDwZWs61qA3oBqfEZz',
'QmTWd6MfWe3LNSBPRGufnV7pBFX8tWR7Dqs41VJ44Agite',
'QmZTzUxigeXMZUL4UMAgFNjMcvspS9UvVvWKn7e1KuheX7'
],
dupBlksReceived: 8448n,
dupDataReceived: 21713653n,
dataReceived: 25450429n,
blocksSent: 7n,
dataSent: 1050n
}
If I’m reading the units correctly, the dupDataReceived
is 21.7 megabytes. The total dataReceived
is 25.4 megabytes. So duplicate data makes up the vast majority of data.
- Any suggestions on why this node is consuming so much duplicate data?
- Any suggestions on how to debug and track down the root cause?