UAF-SuperDARN-OPS / SuperDARN_UHD_Server

Server to control USRPs across multiple computers for phased array with CUDA-accelerated down-conversion.
GNU General Public License v3.0
3 stars 0 forks source link

fill SHM with zeros after USRP crash #58

Open mguski opened 7 years ago

mguski commented 7 years ago

check why it sometime fails

Failed filling SHM with zeros: shm_rx_ant_15_side_0_swing_0

or try another faster way via system call /dev/null >> shm_file

loxodes commented 7 years ago

/dev/zero would fill the file with zeros, the following appears to run at 3.0 GB/s: dd if=/dev/zero of=/dev/shm/shm_rx_ant_0_side_0_swing_0 bs=4096 count=34179

where bs is the block size in bytes, and count is the number of blocks to write. I think count should be rxshm_size/bs

we may need to also pass conv=notrunc to dd so that it doesn't create a new shm file?