Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I'm seeing a large drain lately and you reminded me of top Menn. Any chance you could tell me the top commands? It's been forever since I used it.
 
I'm seeing a large drain lately and you reminded me of top Menn. Any chance you could tell me the top commands? It's been forever since I used it.

By default, top sorts by PID. Just tap "o" on the (virtual) keyboard and enter "cpu" to sort by CPU usage. (Add the "+" sign if you want the list to be sorted increasingly. I don't recommend this when using the on-device terminal as, on iOS5+, there will be too many daemons / processes and the top CPU users won't be displayed. When accessed thru SSH, however, you can enlarge the terminal window.)

Another very useful command is "command", which sorts by the command name if you don't want to manually search for a particular process. (Here, adding a "+" on even the built-in MobileTerminal app can indeed be meaningful.) Also, "rsize" sorts by the memory usage - this is also very important.

Just remember to always tap "q" before exiting; otherwise, top will remain active even after exiting MobileTerminal, resulting in some excess CPU usage. For example, this happened to me yesterday, running my iPhone 5's CPU at 100% always and quickly chewing thru my battery: see the attached screenshot.
 

Attachments

  • IMG_2557.PNG
    IMG_2557.PNG
    216.8 KB · Views: 112
Another very useful command is "command", which sorts by the command name if you don't want to manually search for a particular process. (Here, adding a "+" on even the built-in MobileTerminal app can indeed be meaningful.)

An example of the output of this (+command) is attached; Skype process after booting in annotated. I still couldn't find out why the system starts Skype in some cases, and not in other ones.
 

Attachments

  • Screen Shot 2014-03-18 at 11.36.43 AM.png
    Screen Shot 2014-03-18 at 11.36.43 AM.png
    218.3 KB · Views: 98
By default, top sorts by PID. Just tap "o" on the (virtual) keyboard and enter "cpu" to sort by CPU usage. (Add the "+" sign if you want the list to be sorted increasingly. I don't recommend this when using the on-device terminal as, on iOS5+, there will be too many daemons / processes and the top CPU users won't be displayed. When accessed thru SSH, however, you can enlarge the terminal window.)

Another very useful command is "command", which sorts by the command name if you don't want to manually search for a particular process. (Here, adding a "+" on even the built-in MobileTerminal app can indeed be meaningful.) Also, "rsize" sorts by the memory usage - this is also very important.

Just remember to always tap "q" before exiting; otherwise, top will remain active even after exiting MobileTerminal, resulting in some excess CPU usage. For example, this happened to me yesterday, running my iPhone 5's CPU at 100% always and quickly chewing thru my battery: see the attached screenshot.

Sorry for the late reply, work has been hectic. So would this command work? I'm trying to see if I understand how it works.
top -F -R -o cpu
And before exiting q?

Edit: added a screenshot of what I see in top. I'm also seeing high numbers in "aggregated" and "assetsd". Any worries with these?
 

Attachments

  • image.jpg
    image.jpg
    246.6 KB · Views: 86
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.