我们有一个需要毫秒精度的系统,通常需要23毫秒的操作会突然每30分钟或60分钟花费129毫秒。在标准的16.04.3LTS桌面版通用内核中,我想知道是否有人知道内核进程或cron作业每小时或半小时发生一次。我在cron.hourly中没有看到任何作业,但是我们在cron.daily中有进程。我还没有配置cron选项卡,所以它很可能是ubuntu桌面安装中的默认选项。任何建议都将不胜感激,因为我们迫切需要解决这一问题。
$ ls /etc/cron.*
/etc/cron.d:
anacron popularity-contest
/etc/cron.daily:
0anacron apt-compat cracklib-runtime logrotate mlocate popularity-contest upstart
apport bsdmainutils dpkg man-db passwd update-notifier-common
/etc/cron.hourly:
/etc/cron.monthly:
0anacron
/etc/cron.weekly:
0anacron fstrim man-db update-notifier-common注意:我们的系统没有安装厨师。
发布于 2018-06-22 02:37:21
cron只是消耗CPU周期和系统资源的运行守护进程之一:
$ ps -eo 'tty,pid,comm' | grep ^? | grep cron
? 841 cron
? 896 cron对于我的系统上的全部264的完整列表,我使用:
ps -eo 'tty,pid,comm' | grep ^?那么哪个经理每30分钟跑一次?谷歌的第一个热门产品是chef deamon (不是烹饪的东西):https://stackoverflow.com/questions/14905278/chef-daemon-running-every-30-minutes。
如果没有文档化,您必须检查每个守护进程的源代码,以查看它运行的频率。
https://askubuntu.com/questions/1048708
复制相似问题