I have a problem /proc/[PID]/io, or maybe the problem stand with my code I don't know.
I need to profile application IO that uses python library astropy.
One of the problem I have is that IO read/write total bytes are incorrect in /proc/[PID]/io.
I have a script `copy.sh` :
#!/bin/bash
cp huge.fits huge.2.fits
#python copy.py
#python copyfits.py
sleep 5
cat /proc/$$/io
I comment the `cp` line to and the line I want to run for each test.
`copy.py` contains:
import shutil
shutil.copy("huge.fits", "huge.2.fits")