directory listing hangs after directory was flooded with > 5 million files
This is a know issue: when having so many files, the directory entry (dentry) become very big and deleting the files will not shrink it.
The easier solution is to remove and recreate the directory itself (ie: in your case, something as rm -rf roundcube/logs/ ; mkdir roundcube/logs/
)
See here for more informations