Tracciamento frequente (ogni 20 secondi) di accesso al disco rigido SCSI in 10.7

5

In un sistema Lion Server (10.7.3 e 10.7.4 provato) con più unità collegate a un controller SATA HPT, esiste un processo che continua ad accedere alle unità disco fisso esattamente ogni 20 secondi. Di conseguenza, le unità non dormiranno mai (e si spegneranno).

Il modello di accesso all'unità non è in parallelo, ma sequenziale entro un intervallo di tempo di 1 - 2 secondi.

Risoluzione

  1. Anche se i dischi sono non montati e espulsi da diskutil, l'accesso al disco continua a una frequenza di 3 volte al minuto.
  2. iosnoop non dà la minima idea su quale processo potrebbe causare questo frequente accesso al disco. Ci sono molte linee come:

    0     1 W    47880   4096    launchd ??/<unknown (NULL v_parent)>/<unknown (NULL v_name)>
    dtrace: error on enabled probe ID 4 (ID 992: io:mach_kernel:buf_strategy:start): illegal operation in action #3 at DIF offset 0
    0     1 W  2566032   8192    launchd ??/<unknown (NULL v_parent)>/<unknown (NULL v_name)>
    0     1 W  2567040   8192    launchd ??/<unknown (NULL v_parent)>/<unknown (NULL v_name)>
    

S.M.A.R.T. la lettura è "Non supportato", vedi diskutil info:

$ diskutil info disk6
   Device Identifier:        disk6
   Device Node:              /dev/disk6
   Part of Whole:            disk6
   Device / Media Name:      HPT DISK 1_4 Media

   Volume Name:              Not applicable (no file system)

   Mounted:                  Not applicable (no file system)

   File System:              None

   Content (IOContent):      GUID_partition_scheme
   OS Can Be Installed:      No
   Media Type:               Generic
   Protocol:                 SCSI
   SCSI Domain ID:           0
   SCSI Target ID:           4
   SCSI LUN:                 0
   SMART Status:             Not Supported

   Total Size:               1.0 TB (1000204886016 Bytes) (exactly 1953525168 512-Byte-Blocks)
   Volume Free Space:        Not applicable (no file system)
   Device Block Size:        512 Bytes

   Read-Only Media:          No
   Read-Only Volume:         Not applicable (no file system)
   Ejectable:                Yes

   Whole:                    Yes
   Internal:                 No
   OS 9 Drivers:             No
   Low Level Format:         Not supported

Strano è che iostat non traccia alcuna attività del disco, anche se i LED di attività dell'unità si accendono e sentono una piccola quantità di attività dell'unità. Nell'output seguente è disk6 smontato espulso e disk7 montato.

$ iostat -dw 1 disk{6,7}
         disk6           disk7 
    KB/t tps  MB/s     KB/t tps  MB/s 
    6.06   0  0.00     6.39   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
          disk6           disk7 
    KB/t tps  MB/s     KB/t tps  MB/s 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00 
    0.00   0  0.00     0.00   0  0.00

Elenco Launchctl dopo l'arresto dei più famosi daemon di scrittura su disco:

$ sudo launchctl list
Password:
PID Status  Label
3257    -   0x7fe6a3611ba0.anonymous.SecurityAgent
3252    -   0x7fe6a3611580.anonymous.ManagedClient
-   0   com.apple.ZoomWindow
-   0   com.apple.VoiceOver
-   0   com.apple.UserNotificationCenterAgent-LoginWindow
3253    -   com.apple.UserEventAgent-LoginWindow
-   0   com.apple.tiswitcher
-   0   com.apple.storeagent
-   0   com.apple.store_helper
-   0   com.apple.scrod
-   0   com.apple.screensharing.agent
-   0   com.apple.ScreenReaderUIServer
3254    -   com.apple.RemoteDesktop.agent
-   0   com.apple.netauth.user.gui
-   0   com.apple.isst
-   0   com.apple.imklaunchagent
-   0   com.apple.iCalPush
-   0   com.apple.coreservices.appleid.authentication
-   0   com.apple.btsa
-   0   com.apple.BezelUIServer
-   0   com.apple.AppleGraphicsWarning
-   0   com.apple.launchctl.LoginWindow
1   -   0x7fe6a360a900.anonymous.launchd
3246    -   0x7fe6a3605200.anonymous.loginwindow
-   0   com.apple.AppSandboxSMLoginItemEnabler
-   0   com.apple.security.pboxd
-   0   com.apple.cmio.registerassistantservice
-   0   com.apple.appkit.xpc.sandboxedServiceRunner
-   0   com.apple.automator.xpc.workflowServiceRunner
-   0   com.apple.hiservices-xpcservice
-   0   com.apple.cfpreferences-xpcservice
-   0   com.apple.DataDetectors.DataDetectorsActionService
-   0   com.apple.security.XPCKeychainSandboxCheck
-   0   com.apple.qtkitserver
-   0   com.apple.XType.FontHelper
-   0   com.apple.HasTRB
1   -   0x7fe6a342ed10.anonymous.launchd
3246    -   0x7fe6a342a450.anonymous.loginwindow
1   -   0x7fe6a3444940.anonymous.launchd
554 -   0x7fe6a3444630.anonymous.filecoordinatio
1   -   0x7fe6a342ea10.anonymous.launchd
38  -   0x7fe6a342e710.anonymous.distnoted
3485    -   0x7fe6a3435dd0.anonymous.sudo
3488    -   0x7fe6a3432e70.anonymous.launchctl
3484    -   0x7fe6a3609350.anonymous.sleep
3252    -   0x7fe6a3611890.anonymous.ManagedClient
3257    -   com.apple.SecurityAgent.00000000-0000-0000-0000-0000000186B2
3115    -   org.postgresql.postgres
-   0   org.postfix.master
1288    -   0x7fe6a3603dd0.anonymous.sshd
1289    -   0x7fe6a3609650.anonymous.bash
1285    -   0x7fe6a343bbf0.anonymous.sshd
1169    -   0x7fe6a3610520.anonymous.ipfwloggerd
-   0   com.apple.authorizationhost.00000000-0000-0000-0000-0000000186B1
-   0   com.apple.SecurityAgent.00000000-0000-0000-0000-0000000186B1
-   0   com.apple.launchd.peruser.93
-   0   com.apple.authorizationhost.00000000-0000-0000-0000-0000000186A8
-   0   com.apple.xpchelper.F5010000-0000-0000-0000-000000000000
3486    -   com.apple.launchd.peruser.501
-   0   com.apple.launchd.peruser.92
-   0   com.apple.xpchelper.59000000-0000-0000-0000-000000000000
-   0   com.apple.launchd.peruser.89
-   0   com.apple.SecurityAgent.00000000-0000-0000-0000-0000000186A8
-   0   com.apple.launchd.peruser.212
-   0   com.apple.launchd.peruser.70
1   -   0x7fe6a3438830.anonymous.launchd
230 -   0x7fe6a3438520.anonymous.raidman-httpsd
-   0   com.apple.launchd.peruser.222
-   0   com.apple.xpchelper.DE000000-0000-0000-0000-000000000000
174 -   0x7fe6a3600cc0.anonymous.sh
-   0   com.apple.launchd.peruser.84
163 -   0x7fe6a3433170.anonymous.s2s
161 -   0x7fe6a3432b70.anonymous.c2s
159 -   0x7fe6a3432570.anonymous.router
158 -   0x7fe6a3432270.anonymous.sm
-   0   com.apple.launchd.peruser.220
-   0   com.openssh.sshd
-   0   com.apple.screensharing
-   0   com.apple.odproxyd
-   0   com.apple.msrpc.wkssvc
-   0   com.apple.msrpc.srvsvc
-   0   com.apple.msrpc.netlogon
-   0   com.apple.msrpc.mdssvc
-   0   com.apple.msrpc.lsarpc
-   0   com.apple.launchd.peruser.0
-   0   com.apple.xpchelper.00000000-0000-0000-0000-000000000000
-   0   org.x.privileged_startx
81  -   org.openldap.slapd
82  -   org.ntp.ntpd
83  -   org.jabber.jabberd_notification
-   0   org.cups.cupsd
-   62  org.clamav.freshclam-init
-   0   com.vix.cron
-   0   com.apple.xserve.serial-ports
-   0   com.apple.xscertd
-   0   com.apple.xscertd-helper
-   0   com.apple.xscertadmin
-   0   com.apple.xpchelper
-   0   com.apple.xgridd.pcastserver
3249    -   com.apple.WindowServer
-   0   com.apple.webdavfs_load_kext
-   0   com.apple.warmd
-   0   com.apple.vsdbutil
-   0   com.apple.var-db-shadow-backup
-   0   com.apple.var-db-dslocal-backup
-   0   com.apple.UserNotificationCenter
30  -   com.apple.UserEventAgent-System
-   0   com.apple.unmountassistant.sysagent
-   0   com.apple.uninstalld
-   0   com.apple.ucupdate.plist
-   0   com.apple.TrustEvaluationAgent.system
-   0   com.apple.taskgated
-   0   com.apple.taskgated-helper
93  -   com.apple.SystemStarter
-   0   com.apple.systempreferences.writeconfig
-   0   com.apple.systempreferences.install
-   0   com.apple.systemkeychain
36  -   com.apple.syslogd
-   0   com.apple.suhelperd
-   0   com.apple.storereceiptinstaller
-   0   com.apple.statd.notify
95  -   com.apple.stackshot
-   0   com.apple.spindump_symbolicator
-   0   com.apple.spindump
-   0   com.apple.softwareupdatecheck.periodic
-   0   com.apple.softwareupdatecheck.initial
-   0   com.apple.smbfs_load_kext
-   0   com.apple.smb.preferences
-   0   com.apple.shutdown_monitor
96  -   com.apple.ServerPerfLog
46  -   com.apple.securityd
-   0   com.apple.SecurityAgent
-   0   com.apple.security.syspolicy
-   0   com.apple.scsid
-   0   com.apple.SCHelper
-   0   com.apple.sandboxd
-   0   com.apple.salearn
-   0   com.apple.rpcbind
-   0   com.apple.RFBEventHelper
-   0   com.apple.ReportCrash.Root
-   0   com.apple.RemoteDesktop.PrivilegeProxy
-   0   com.apple.racoon
-   0   com.apple.printtool.daemon
-   0   com.apple.preferences.timezone.auto
-   0   com.apple.preferences.timezone.admintool
37  -   com.apple.powerd
-   0   com.apple.platform.ptmd
-   0   com.apple.pfctl
-   0   com.apple.periodic-weekly
-   0   com.apple.periodic-monthly
-   0   com.apple.periodic-daily
-   0   com.apple.PCIELaneConfigTool
-   0   com.apple.pcastagentconfigd
101 -   com.apple.PasswordService
1089    -   com.apple.opendirectoryd
-   0   com.apple.opendirectorybackup
-   0   com.apple.ocspd
33  -   com.apple.notifyd
102 -   com.apple.NotificationServer
-   0   com.apple.nis.ypbind
-   0   com.apple.nfsd
-   0   com.apple.newsyslog
-   0   com.apple.nlcd
-   0   com.apple.netauth.sys.gui
-   0   com.apple.netauth.sys.auth
-   0   com.apple.metadata.mds.spindump
-   0   com.apple.metadata.mds.scan
-   0   com.apple.mDNSResponderHelper
31  -   com.apple.mDNSResponder
-   0   com.apple.mdmclient.daemon
-   0   com.apple.ManagedClient
3246    -   com.apple.loginwindow
249 -   com.apple.logind
-   0   com.apple.locum
-   0   com.apple.lockd
-   0   com.apple.locate
-   0   com.apple.kuncd
29  -   com.apple.kextd
108 -   com.apple.KernelEventAgent
109 -   com.apple.Kerberos.kpasswdd
110 -   com.apple.Kerberos.kdc
-   0   com.apple.Kerberos.kcm
111 -   com.apple.Kerberos.kadmind
-   0   com.apple.Kerberos.digest-service
-   0   com.apple.kcproxy
-   0   com.apple.installd
-   0   com.apple.IFCStart
114 -   com.apple.hidd
-   0   com.apple.HeadlessStartup
-   0   com.apple.hdiejectd
-   0   com.apple.gssd
41  -   com.apple.fseventsd
-   0   com.apple.FontWorker
-   0   com.apple.fontmover
3263    -   com.apple.fontd
-   0   com.apple.findmymacmessenger
-   0   com.apple.findmymacd
554 -   com.apple.FileCoordination
3489    -   com.apple.emlog
-   0   com.apple.efilogin-helper
-   0   com.apple.eapolcfg_auth
118 -   com.apple.dynamic_pager
-   0   com.apple.dvdplayback.setregion
-   0   com.apple.DumpPanic
-   0   com.apple.DumpGPURestart
-   0   com.apple.dspluginhelperd
-   0   com.apple.dpd
38  -   com.apple.distnoted.xpc.daemon
-   0   com.apple.diskmanagementd
34  -   com.apple.diskarbitrationd
-   0   com.apple.DiagnosticReportCleanUp
235 -   com.apple.cvmsServ
-   0   com.apple.corestorage.corestoragehelperd
-   0   com.apple.corestorage.corestoraged
50  -   com.apple.coreservicesd
-   0   com.apple.coreservices.appleid.passwordcheck
-   0   com.apple.configureLocalKDC
35  -   com.apple.configd
-   0   com.apple.collabd.quicklook
-   0   com.apple.collabd.expire
-   0   com.apple.cmio.VDCAssistant
-   0   com.apple.cmio.IIDCVideoAssistant
-   0   com.apple.cmio.AVCAssistant
-   0   com.apple.bsd.launchdadd
-   0   com.apple.bsd.dirhelper
-   0   com.apple.bnepd
-   0   com.apple.blued
-   0   com.apple.backupd
-   0   com.apple.awacsd
-   0   com.apple.avbdeviced
-   0   com.apple.automountd
124 -   com.apple.autofsd
-   0   com.apple.authorizationhost
-   0   com.apple.auditd
347 -   com.apple.audio.coreaudiod
-   0   com.apple.aslmanager
-   0   com.apple.applepushserviced
-   0   com.apple.appleprofilepolicyd
126 -   com.apple.APNBridge
-   0   com.apple.AOSNotification-FMM
-   0   com.apple.alf
-   0   com.apple.airport.updateprefs
-   0   com.apple.airportd
-   0   com.apple.AirPort.wps
-   0   com.apple.afpfs_checkafp
-   0   com.apple.afpfs_afpLoad
-   0   com.apple.afctl
-   0   com.apple.ActivityMonitor
-   0   com.apple.AccountsConfigService
-   0   com.fernlightning.fseventer
-   0   com.apple.launchctl.System

Fs_usage dà quasi ogni 20 secondi questi pattern ripetuti:

$ sudo fs_usage -w
...
19:57:12.973849  exit                                                                                                             0.000027   sleep.37168
19:57:12.974393  select                   S=1                                                                                     0.000239 W launchd.166
19:57:12.974779  close             F=255                                                                                          0.000003   .37199
19:57:12.974860  dup2              F=4    F=1                                                                                     0.000003   .37199
19:57:12.974861  close             F=4                                                                                            0.000001   .37199
19:57:12.974867  close             F=3                                                                                            0.000001   .37199
19:57:12.975414  close             F=4                                                                                            0.000002   .37199
19:57:12.975460  close             F=4  [  9]                                                                                     0.000001   .37199
19:57:12.975747  close             F=3                                                                                            0.000002   sh.37200
19:57:12.975748  close             F=3                                                                                            0.000002   .37199
19:57:12.975751  dup2              F=4    F=1                                                                                     0.000003   sh.37200
19:57:12.975752  close             F=4                                                                                            0.000001   sh.37200
19:57:12.976252  dup2              F=3    F=0                                                                                     0.000003   sh.37201
19:57:12.976254  close             F=3                                                                                            0.000001   sh.37201
19:57:12.976527  execve                                 /bin/ps                                                                   0.000444   sh.37200
...
19:57:13.001362  stat64                 [  2]           /AppleInternal                                                            0.000007   sleep.37202
19:57:33.002940  exit                                                                                                             0.000030   sleep.37202
19:57:33.002960  select                   S=1                                                                                    20.004119 W launchd.166
19:57:33.003463  select                   S=1                                                                                     0.000350 W launchd.166
19:57:33.003841  close             F=255                                                                                          0.000003   .37204
19:57:33.003921  dup2              F=4    F=1                                                                                     0.000003   .37204
19:57:33.003923  close             F=4                                                                                            0.000001   .37204
19:57:33.003929  close             F=3                                                                                            0.000001   .37204
19:57:33.004457  close             F=4                                                                                            0.000002   .37204
19:57:33.004502  close             F=4  [  9]                                                                                     0.000001   .37204
19:57:33.004788  close             F=3                                                                                            0.000002   sh.37205
19:57:33.004788  close             F=3                                                                                            0.000002   .37204
19:57:33.004791  dup2              F=4    F=1                                                                                     0.000003   sh.37205
19:57:33.004792  close             F=4                                                                                            0.000001   sh.37205
19:57:33.005270  dup2              F=3    F=0                                                                                     0.000003   sh.37206
19:57:33.005272  close             F=3                                                                                            0.000001   sh.37206
19:57:33.005571  execve                                 /bin/ps                                                                   0.000449   sh.37205
...
19:57:53.030653  exit                                                                                                             0.000027   sleep.37207
19:57:53.030668  select                   S=1                                                                                    14.079398 W launchd.166
19:57:53.031187  select                   S=1                                                                                     0.000360 W launchd.166
19:57:53.031576  close             F=255                                                                                          0.000003   .37225
19:57:53.031655  dup2              F=4    F=1                                                                                     0.000003   .37225
19:57:53.031657  close             F=4                                                                                            0.000001   .37225
19:57:53.031663  close             F=3                                                                                            0.000001   .37225
19:57:53.032191  close             F=4                                                                                            0.000002   .37225
19:57:53.032235  close             F=4  [  9]                                                                                     0.000001   .37225
19:57:53.032519  close             F=3                                                                                            0.000002   sh.37226
19:57:53.032522  dup2              F=4    F=1                                                                                     0.000002   sh.37226
19:57:53.032523  close             F=4                                                                                            0.000001   sh.37226
19:57:53.032526  close             F=3                                                                                            0.000002   .37225
19:57:53.033006  dup2              F=3    F=0                                                                                     0.000003   sh.37227
19:57:53.033008  close             F=3                                                                                            0.000001   sh.37227
19:57:53.033298  execve                                 /bin/ps                                                                   0.000443   sh.37226
...
19:58:13.058381  exit                                                                                                             0.000028   sleep.37228
19:58:13.058397  select                   S=1                                                                                     7.053934 W launchd.166
19:58:13.058916  select                   S=1                                                                                     0.000339 W launchd.166
19:58:13.059297  close             F=255                                                                                          0.000002   .37251
19:58:13.059378  dup2              F=4    F=1                                                                                     0.000003   .37251
19:58:13.059380  close             F=4                                                                                            0.000001   .37251
19:58:13.059386  close             F=3                                                                                            0.000001   .37251
19:58:13.059923  close             F=4                                                                                            0.000002   .37251
19:58:13.059966  close             F=4  [  9]                                                                                     0.000001   .37251
19:58:13.060247  close             F=3                                                                                            0.000002   .37251
19:58:13.060251  close             F=3                                                                                            0.000002   sh.37252
19:58:13.060254  dup2              F=4    F=1                                                                                     0.000003   sh.37252
19:58:13.060256  close             F=4                                                                                            0.000001   sh.37252
19:58:13.060723  dup2              F=3    F=0                                                                                     0.000004   sh.37253
19:58:13.060724  close             F=3                                                                                            0.000001   sh.37253
19:58:13.061024  execve                                 /bin/ps                                                                   0.000434   sh.37252
...

È ancora possibile accedere alle unità ogni 20 secondi, anche dopo aver scaricato quasi tutti gli elementi di avvio :

$ sudo launchctl list
PID Status  Label
-   0   com.apple.appkit.xpc.sandboxedServiceRunner
-   0   com.apple.hiservices-xpcservice
-   0   com.apple.security.XPCKeychainSandboxCheck
-   0   com.apple.cfpreferences-xpcservice
-   0   com.apple.cmio.registerassistantservice
7194    -   0x7fe6a4c10190.anonymous.sudo
7195    -   0x7fe6a4c0fcf0.anonymous.launchctl
-   0   com.apple.SecurityAgent.00000000-0000-0000-0000-0000000186B2
-   0   org.postfix.master
1288    -   0x7fe6a3603dd0.anonymous.sshd
1289    -   0x7fe6a3609650.anonymous.bash
1285    -   0x7fe6a343bbf0.anonymous.sshd
-   0   com.apple.authorizationhost.00000000-0000-0000-0000-0000000186B1
-   0   com.apple.SecurityAgent.00000000-0000-0000-0000-0000000186B1
-   0   com.apple.launchd.peruser.93
-   0   com.apple.authorizationhost.00000000-0000-0000-0000-0000000186A8
-   0   com.apple.xpchelper.F5010000-0000-0000-0000-000000000000
7184    -   com.apple.launchd.peruser.501
-   0   com.apple.launchd.peruser.92
-   0   com.apple.xpchelper.59000000-0000-0000-0000-000000000000
-   0   com.apple.launchd.peruser.89
-   0   com.apple.SecurityAgent.00000000-0000-0000-0000-0000000186A8
-   0   com.apple.launchd.peruser.212
-   0   com.apple.launchd.peruser.70
1   -   0x7fe6a3438830.anonymous.launchd
-   0   com.apple.launchd.peruser.222
-   0   com.apple.xpchelper.DE000000-0000-0000-0000-000000000000
-   0   com.apple.launchd.peruser.84
-   0   com.apple.launchd.peruser.220
-   0   com.openssh.sshd
-   0   com.apple.screensharing
-   0   com.apple.odproxyd
-   0   com.apple.msrpc.wkssvc
-   0   com.apple.msrpc.srvsvc
-   0   com.apple.msrpc.mdssvc
-   0   com.apple.msrpc.lsarpc
-   0   com.apple.launchd.peruser.0
-   0   com.apple.xpchelper.00000000-0000-0000-0000-000000000000
-   0   org.x.privileged_startx
-   0   org.cups.cupsd
-   62  org.clamav.freshclam-init
-   0   com.vix.cron
-   0   com.apple.xserve.serial-ports
-   0   com.apple.xscertd
-   0   com.apple.xscertd-helper
-   0   com.apple.xscertadmin
-   0   com.apple.xpchelper
-   0   com.apple.xgridd.pcastserver
-   0   com.apple.webdavfs_load_kext
-   0   com.apple.warmd
-   0   com.apple.vsdbutil
-   0   com.apple.var-db-shadow-backup
-   0   com.apple.var-db-dslocal-backup
-   0   com.apple.UserNotificationCenter
-   0   com.apple.unmountassistant.sysagent
-   0   com.apple.uninstalld
-   0   com.apple.ucupdate.plist
-   0   com.apple.TrustEvaluationAgent.system
-   0   com.apple.taskgated-helper
-   0   com.apple.systempreferences.writeconfig
-   0   com.apple.systempreferences.install
-   0   com.apple.systemkeychain
-   0   com.apple.suhelperd
-   0   com.apple.storereceiptinstaller
-   0   com.apple.statd.notify
-   0   com.apple.spindump_symbolicator
-   0   com.apple.spindump
-   0   com.apple.softwareupdatecheck.periodic
-   0   com.apple.softwareupdatecheck.initial
-   0   com.apple.smbfs_load_kext
-   0   com.apple.smb.preferences
-   0   com.apple.shutdown_monitor
-   0   com.apple.SecurityAgent
-   0   com.apple.security.syspolicy
-   0   com.apple.scsid
-   0   com.apple.SCHelper
-   0   com.apple.sandboxd
-   0   com.apple.salearn
-   0   com.apple.rpcbind
-   0   com.apple.RFBEventHelper
-   0   com.apple.ReportCrash.Root
-   0   com.apple.RemoteDesktop.PrivilegeProxy
-   0   com.apple.racoon
-   0   com.apple.printtool.daemon
-   0   com.apple.preferences.timezone.auto
-   0   com.apple.preferences.timezone.admintool
-   0   com.apple.platform.ptmd
-   0   com.apple.pfctl
-   0   com.apple.periodic-weekly
-   0   com.apple.periodic-monthly
-   0   com.apple.periodic-daily
-   0   com.apple.PCIELaneConfigTool
-   0   com.apple.pcastagentconfigd
1089    -   com.apple.opendirectoryd
-   0   com.apple.opendirectorybackup
-   0   com.apple.ocspd
-   0   com.apple.nis.ypbind
-   0   com.apple.nfsd
-   0   com.apple.newsyslog
-   0   com.apple.nlcd
-   0   com.apple.netauth.sys.gui
-   0   com.apple.netauth.sys.auth
-   0   com.apple.metadata.mds.spindump
-   0   com.apple.metadata.mds.scan
-   0   com.apple.mDNSResponderHelper
-   0   com.apple.mdmclient.daemon
-   0   com.apple.ManagedClient
-   -9  com.apple.loginwindow
-   0   com.apple.locum
-   0   com.apple.lockd
-   0   com.apple.locate
-   0   com.apple.kuncd
-   0   com.apple.Kerberos.kcm
-   0   com.apple.Kerberos.digest-service
-   0   com.apple.kcproxy
-   0   com.apple.installd
-   0   com.apple.IFCStart
-   0   com.apple.HeadlessStartup
-   0   com.apple.hdiejectd
-   0   com.apple.gssd
-   0   com.apple.FontWorker
-   0   com.apple.fontmover
-   0   com.apple.fontd
-   0   com.apple.findmymacmessenger
-   0   com.apple.findmymacd
-   0   com.apple.emlog
-   0   com.apple.efilogin-helper
-   0   com.apple.eapolcfg_auth
-   0   com.apple.dvdplayback.setregion
-   0   com.apple.DumpPanic
-   0   com.apple.DumpGPURestart
-   0   com.apple.dspluginhelperd
-   0   com.apple.dpd
-   0   com.apple.diskmanagementd
-   0   com.apple.DiagnosticReportCleanUp
-   0   com.apple.corestorage.corestoragehelperd
-   0   com.apple.corestorage.corestoraged
-   0   com.apple.coreservices.appleid.passwordcheck
-   0   com.apple.configureLocalKDC
-   0   com.apple.collabd.quicklook
-   0   com.apple.collabd.expire
-   0   com.apple.cmio.VDCAssistant
-   0   com.apple.cmio.IIDCVideoAssistant
-   0   com.apple.cmio.AVCAssistant
-   0   com.apple.bsd.launchdadd
-   0   com.apple.bsd.dirhelper
-   0   com.apple.bnepd
-   0   com.apple.blued
-   0   com.apple.backupd
-   0   com.apple.awacsd
-   0   com.apple.avbdeviced
-   0   com.apple.automountd
-   0   com.apple.authorizationhost
-   0   com.apple.auditd
-   0   com.apple.aslmanager
-   0   com.apple.applepushserviced
-   0   com.apple.appleprofilepolicyd
-   0   com.apple.AOSNotification-FMM
-   0   com.apple.
    
posta Pro Backup 11.05.2012 - 12:02
fonte

4 risposte

3

Penso che tu sia sulla strada giusta con iosnoop - ma forse fs_usage raggiungerà il nocciolo del quale si accede a file specifici.

Inizia con sudo fs_usage -w e puoi grep per le cose o forse trovare una PID stabile da filtrare. Se i processi stanno arrivando e stanno andando troppo rapidamente per essere tracciati, potrebbe essere necessario accendere strumenti o scaricare il database launchd per sapere cosa sta interrogando tutti i dischi o solo quel disco specifico.

Mi dispiace non posso indovinare la causa - ma questo strumento mi aiuta a scoprire tutti i tipi di misteri di IO su Lion.

    
risposta data 11.05.2012 - 19:19
fonte
1

Il rintracciamento dei comandi eseguiti può essere eseguito con sudo execsnoop -v .

In questo caso i risultati sono stati:

2012 May 12 17:05:53     0  15465    161 sleep
2012 May 12 17:06:13     0  15467  15466 ps
2012 May 12 17:06:13     0  15468  15466 awk
2012 May 12 17:06:13     0  15469    161 sleep
2012 May 12 17:06:33     0  15472  15470 awk
2012 May 12 17:06:33     0  15471  15470 ps
2012 May 12 17:06:33     0  15473    161 sleep
2012 May 12 17:06:53     0  15475  15474 ps
2012 May 12 17:06:53     0  15476  15474 awk
2012 May 12 17:06:53     0  15477    161 sleep
2012 May 12 17:07:13     0  15480  15478 awk
2012 May 12 17:07:13     0  15479  15478 ps

Dove PID 161 è identificato come:

$ sudo ps 161
  PID   TT  STAT      TIME COMMAND
  161   ??  S      0:03.53 /bin/sh /Library/StartupItems/Hptsvr/Hptsvr-alive

Dopo il processo di uccisione 161 è più lunga l'uscita per execsnoop e i LED di attività dell'unità lampeggiano ancora a intervalli di 20 secondi e fs_usage non ha più uscita a intervalli di 20 secondi (solo a 30 secondi).

    
risposta data 12.05.2012 - 17:40
fonte
1

Non è solo leone, è su ogni sistema operativo che ho installato e su più laptop e sistemi che ho acquistato da vari fornitori. Non ho ancora avuto un PC in grado di far dormire il disco per 10 anni. Ogni PC che ho posseduto ha lo stesso problema. Accesso costante al disco a intervalli specifici ma nessun debugger del software può acquisire o mostrare ciò che sta facendo l'accesso. Unkown ...

Qualche glitch del firmware nascosto che è stato copiato un milione di volte o una backdoor collocata su tutte le piattaforme pc vendute al pubblico? Non dispongo delle risorse o dell'attrezzatura per eseguire effettivamente il tracciamento a livello di linea. Se avessi degli amici in un laboratorio, andrei in fondo a questo.

Quando tutti gli strumenti e il software sviluppati ti tengono al buio, è ovviamente di progettazione e non un difetto. Un altro programma oscurato che rende tutto peggio.

    
risposta data 12.06.2012 - 18:19
fonte
0

Potresti anche guardare gli stack backtrace quando vengono emesse le scritture su disco utilizzando dtrace :

# source: http://www.brendangregg.com/DTrace/DTrace_Chapter_5_File_Systems.pdf
sudo dtrace -n 'io:::start /!(args[0]->b_flags & B_READ)/ { @[stack()] = count(); }'

Inoltre, ci sono dischi rigidi che caricano e scaricano ripetutamente la testa dell'unità quando l'unità è inattiva. Questo potrebbe forse accendere anche i LED di attività dell'unità?

Vedi: ClunKiller - Come funziona?

    
risposta data 14.12.2016 - 23:50
fonte

Leggi altre domande sui tag