在 Ubuntu 里提到 spool 变慢,通常是指 打印 spool(CUPS) 或 邮件/任务 spool(如 /var/spool) 相关系统变慢。下面按常见场景说明原因和优化办法。
lpq
如果有大量任务卡住:
cancel -a
CUPS 使用 /var/spool/cups:
检查:
df -h /var/spool
df -i /var/spool
driverless 而非专用驱动查看日志:
journalctl -u cups -f
建议:
用 IP 而非打印机名
常见于:
检查:
iostat -x 1
例如:
/var/spool/mail/var/spool/postfix/var/spool/cron清理无用文件:
ls -l /var/spool
aa-status
mailq
postqueue -p
清理:
postsuper -d ALL
邮件系统极度依赖 DNS。
df -h
df -i
systemctl status cups
journalctl -u cups
lpq
iostat -x 1
请告诉我:
/var/spool/cups)我可以给你针对性解决方案。