To turn on cifs debug output in dmesg do
sudo echo 4 > /proc/fs/cifs/cifsFYI
On older ubuntu versions (eg. Ubuntu 10.04) cifs can be slow. The situation can be improved by doing the following