thorium: lower granularity in main loop

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>
thorium: increase buffer size to 2 KiB

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>