How to isolate system freezes on Unix / OSX

I am on OSX and my system becomes immune for a few seconds approximately every 10 minutes. (This gives me a spinning beach ball of death). I was wondering if there is any way to isolate the problem (I have a lot of RAM and there are no misses / windings). Any Unix / OSX tools that can help me control and isolate the cause of this behavior?

+5
source share
8 answers

I would use a mixture of "top" as well as tail -f / var / log / messages (or wherever you are in the main log file).

The chances are right before / after freezing, some error message will come out. From there, you can start fixing your problems.

+2
source

The activity monitor ( cmd+space, type, activity monitor) should give you an intuitive overview of what is happening on your system. If, as you say, there are no processes blocking the CPU, please take a look at disk / I / O activity. Perhaps your drive goes south.

+4
source

. , , Apple , . 100% , , , . ZFS FreeBSD, , , - . , SSD (240 , , , ) " " . .

, spindump stackshot, , , . , , , , - , io.

Apple stackshot , , , , , : http://www.stormacq.com/?p=346

: top -l2 -S > top_output.txt /.

, (darwin-kernel@lists.apple.com), , , , .

, . , , , , , - . , kexts.

, --, , . , , ZFS . , Lion HFS +, , , ZFS + - .

Apple , 20 , , . mfgs , , , , .

+3

Activity Monitor - GUI , Leopard "Sample Process", , . aka tail -f/var/log/messages.

+2

, top , , .

+1

, , . 10 10 ; crontab -l , */10.

+1

. ? io, , .

EDIT:

Mac , , OS X Disk Manger, . Time Machine !

, , Journalling HFS . .

+1

Apple Instruments. , .

+1

All Articles