Si vous tapez la commande suivante pour savoir quel est le process qui écrit le plus dans system.log :
cat /var/log/system.log | awk '{print $5}' | grep '\[' | sed 's/\[/ /g' | awk '{print $1}' | sort -n | uniq -c | sort -n | tail
86 suhelperd
88 KiesAgent
262 loginwindow
266 syslogd
277 GoProMediaService
688 ksfetch
741 GoogleSoftwareUpdateAgent
903 GoogleSoftwareUpdateDaemon
1672 imagneto_d
1695 com.apple.xpc.launchd
La pollution vient de imagneto_d ( iMagneto : http://imagneto.sourceforge.net/ ) et de GoogleSoftwareUpdate …. je trouve que passer un certain nombre de ligne c’est de l’abus.
Je viens de voir qu’il y avait une tache de fond “imagneto_d” toute les minutes. J’ai donc dans /var/log/system.log :
.... imagneto_d[72]: - checking data file at path : /Users/Username/Library/Application Support/iMagneto/imagneto.calendar.plist
.... imagneto_d[72]: - tmpDate is : 2010-11-24 19:29:08 +0000
.... imagneto_d[72]: - nextDateChange : 2010-11-24 19:29:08 +0000
.... imagneto_d[72]: - tmpDate is : 2010-11-24 19:29:09 +0000
En faisant des recherches j’ai pu voir que c’était dans le fichier /Library/Preferences/SystemConfiguration/com.apple.AutoWake.plist .
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>WARNING</key>
<string>Do not edit this file by hand. It must remain in sorted-by-date order.</string>
<key>poweron</key>
<array>
<dict>
<key>appPID</key>
<integer>74</integer>
<key>eventtype</key>
<string>poweron</string>
<key>scheduledby</key>
<string>imagneto_d</string>
<key>time</key>
<date>2010-11-24T19:27:08Z</date>
</dict>
</array>
<key>wake</key>
<array>
<dict>
<key>appPID</key>
<integer>72</integer>
<key>eventtype</key>
<string>wake</string>
<key>scheduledby</key>
<string>imagneto_d</string>
<key>time</key>
<date>2010-11-24T19:27:08Z</date>
</dict>
</array>
</dict>
</plist>
J’ai donc fait une modification sur le fichier pour supprimer cette taches. A noter aussi que le fichier imagneto.calendar.plist contient :