All my processes sleeping - What's up?

Moderators: jhartley, MSR734, nola

All my processes sleeping - What's up?

Post by shuman » Sat Oct 27, 2012 12:26 am

Finder is taking ~1 minute to delete an empty folder. Run Top to see most everything is "sleeping". Does it normally look like this and I just have never noticed it? I've restarted twice. Any ideas?

Screen Shot 2012-10-27 at 12.21.18 AM.png
Screen Shot 2012-10-27 at 12.21.18 AM.png (56.48 KiB) Viewed 116 times
- Mac Mini (Late 2012), 10.8.5, 16GB memory, pool - 2 Mirrored 3TB USB 3.0 External Drives
shuman Offline

User avatar
 
Posts: 96
Joined: Mon Sep 17, 2012 8:15 am

false alarm here

Post by grahamperrin » Sat Oct 27, 2012 1:13 am

At first, I wondered whether we were affected by something malicious whilst viewing then reporting offending posts.

I was alarmed when I could not get my home directory ~ in Terminal, but that was a false alarm caused by a keyboard preference.

At some point during my browser session, a series of modal dialogues was attempted. I escaped (left the page) as the first modal dialogue appeared. Although that issue occurred around the time of me browsing this support forum, the issue maybe arose from a different area (I frequently use Diigo for annotation; their domain was hijacked for a couple of days).

False alarms or not, I decided to reinstall and purchase security software that can work with the browser (hint: not all anti-virus software has that level of integration) …
Last edited by grahamperrin on Sat Oct 27, 2012 5:38 am, edited 2 times in total.
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Finder taking ~1 minute to delete an empty folder

Post by grahamperrin » Sat Oct 27, 2012 4:25 am

shaman wrote:… Run Top to see most everything is "sleeping". Does it normally look like this and I just have never noticed it? …


Probably normal. In the Mac|Life example at Terminal 101: Track and Kill Processes, 110 processes sleep whilst three processes run.

shuman wrote:Finder is taking ~1 minute to delete an empty folder. … Any ideas?


If that symptom recurs, then run the following command whilst Finder performs the deletion:

Code: Select all
sudo sysdiagnose Finder


Within the end result there may be something to help diagnose the cause(s) of slowness.
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: All my processes sleeping - What's up?

Post by shuman » Sat Oct 27, 2012 1:07 pm

So it's definitely something up with ZFS. Even within my user account (held on a zfs pool) the move to trash command will more or less hang. While it is churning away, I can select a file on an HFS partition to delete and it moves it to the trash instantly leaving the zfs move to trash still just sitting there. . . doing nothing.

I did run the sysdiagnose command. Sorry, way too much data there and I have no idea where to start. I didn't see anything called "end result".

Also, coreservicesd seems to be using about half of my CPU while my computer is sitting mostly idle.

This FS might be too advanced for me. Any ideas before I just move back to an Apple HFS mirror?
- Mac Mini (Late 2012), 10.8.5, 16GB memory, pool - 2 Mirrored 3TB USB 3.0 External Drives
shuman Offline

User avatar
 
Posts: 96
Joined: Mon Sep 17, 2012 8:15 am

Re: All my processes sleeping - What's up?

Post by grahamperrin » Sat Oct 27, 2012 2:22 pm

OK, forget sysdiagnose.

Remind us please: which OS, and what model is the Mac? How much memory?

Outputs please from the following commands:

Code: Select all
zpool list


Code: Select all
sudo zpool status -v
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: All my processes sleeping - What's up?

Post by royfactorial » Sat Oct 27, 2012 2:49 pm

Are the Finder delays limited to specific folders? I've had a long-standing issue (on an HFS+ volume, I should say) where moves/deletions/renames of files on the Desktop will take over 20 seconds, with the Finder pegging 100% of a CPU core during the process. Doing the same type of file management from a Finder window doesn't incur these delays.

The only clue I've noticed so far, is that under the 'Open ports and files' tab in Activity Monitor, is that when it does this, the Finder is cycling between having the resource fork of each file on the desktop open. In other words, it'll have ~/Desktop/[foldername]/..namedfork/rsrc open, then ~/Desktop/[differentfolder]/..namedfork/rsrc, and so on, then occasionally it'll say 'vnode fd unavailable' before cycling through everything again.

If this is similar to what you're experiencing, then it may be a Finder issue more than a ZFS issue.
royfactorial Offline


 
Posts: 11
Joined: Sun Sep 16, 2012 1:10 am

Re: All my processes sleeping - What's up?

Post by grahamperrin » Sat Oct 27, 2012 3:12 pm

In Ask Different, under Finder takes long time to load some folders:

Gary wrote:… coreservicesd is at 70% CPU and Finder is at 30% CPU. After all the … both services are still at these CPU levels for about 60 seconds afterward …
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: All my processes sleeping - What's up?

Post by shuman » Sat Oct 27, 2012 5:06 pm

Mac Mini (late 2011), 10.8.2, 8GB
2x Seagate 3TB Expansion Desk External Drives USB3 on separate USB2 controllers

zpool list:
Code: Select all
NAME     SIZE   ALLOC    FREE     CAP  HEALTH  ALTROOT
zdata  2.73Ti  1.35Ti  1.38Ti     49%  ONLINE  -


zpool status:
Code: Select all
pool: zdata
 state: ONLINE
 scan: scrub canceled on Fri Oct 12 16:24:47 2012
config:

   NAME                                           STATE     READ WRITE CKSUM
   zdata                                          ONLINE       0     0     0
     mirror-0                                     ONLINE       0     0     0
       GPTE_59D9A15C-8290-4B54-9BAC-C9D8306FD760  ONLINE       0     0     0  at disk2s2
       GPTE_1A52F1BF-D18F-4310-B304-1AF7F74CC944  ONLINE       0     0     0  at disk1s2

errors: No known data errors


I'll also try clearing some caches per Graham's link.
- Mac Mini (Late 2012), 10.8.5, 16GB memory, pool - 2 Mirrored 3TB USB 3.0 External Drives
shuman Offline

User avatar
 
Posts: 96
Joined: Mon Sep 17, 2012 8:15 am

Re: All my processes sleeping - What's up?

Post by royfactorial » Sat Oct 27, 2012 11:23 pm

grahamperrin wrote:In Ask Different, under Finder takes long time to load some folders:

Gary wrote:… coreservicesd is at 70% CPU and Finder is at 30% CPU. After all the … both services are still at these CPU levels for about 60 seconds afterward …


Hmm... looks like my issue is a bit different: coreservicesd doesn't spike the CPU, but the Finder usually stays at 90-100% for at least a minute, if not indefinitely.
royfactorial Offline


 
Posts: 11
Joined: Sun Sep 16, 2012 1:10 am

Re: All my processes sleeping - What's up?

Post by shuman » Sun Oct 28, 2012 5:07 pm

Back to normal for now. Ran all the Onyx scripts and now it's behaving. Still not sure why it only was manifested on zfs accounts.
- Mac Mini (Late 2012), 10.8.5, 16GB memory, pool - 2 Mirrored 3TB USB 3.0 External Drives
shuman Offline

User avatar
 
Posts: 96
Joined: Mon Sep 17, 2012 8:15 am


Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 2 guests

cron