MacOS Big Sur elevates the most advanced desktop operating system in the world to a new level of power and beauty. Experience Mac to the fullest with a refined new design. Enjoy the biggest Safari update ever. Discover new features for Maps and Messages. The mac OS viewer assigns profiles to the image without permission and displays it. Therefore, in order to avoid changing color, you need to specify a profile in advance. First specify the profile of the monitor (RGB profile of File - Preferences - Color Conversion) from View - Color Profile - Profile Settings.
For Mac OS X 10.11 or later. I want to update Chrome This computer will no longer receive Google Chrome updates because Mac OS X 10.6 - 10.10 are no longer supported.
- Just got one of the new 2018 mac mini's and connected it up to a 4k60hz screen. I noticed immediately that clarity was sub-par on a number of os elements, especially red. It looks like the os decided to default to YCbCr 4:2:0 which is causing significant degridation of the video quality in the red side of the color space.
- Aqua is the graphical user interface, design language and visual theme of Apple's macOS operating system.It was originally based on the theme of water, with droplet-like components and a liberal use of reflection effects and translucency.Its goal is to 'incorporate color, depth, translucence, and complex textures into a visually appealing interface' in macOS applications.
macOS
macOS Recipe
- CPU core(s) should not be consistently saturated.
- Generally, physical memory should never be saturated and the operating system should not page memory out to disk.
- Input/Output interfaces such as network cards and disks should not be saturated, and should not have poor response times.
- Operating system level statistics and optionally process level statistics should be periodically monitored and saved for historical analysis.
- Review operating system logs for any errors, warnings, or high volumes of messages.
- Review snapshots of process activity, and for the largest users of resources, review per thread activity.
- If there is sufficient network capacity for the additional packets, consider reducing the default TCP keepalive timer (tcp_keepalive_time) from 2 hours to a value less than intermediate device idle timeouts (e.g. firewalls).
- Test disabling delayed ACKs
Also review the general topics in the Operating Systems chapter.
General
Overview of performance analysis tools: https://developer.apple.com/library/content/documentation/Performance/Conceptual/PerformanceOverview/PerformanceTools/PerformanceTools.html#//apple_ref/doc/uid/TP40001410-CH205-SW2
log
The log command prints log entries to the terminal. The underlying files are in /var/log
and ~/Library/Logs/
and ~/Library/Logs/DiagnosticReports
log show
to print the logs.log stream
to tail the logs.sudo log collect
to create a logarchive file. This file may be opened inConsole
(see below).
Common things to check
grep crash /var/log/system.log
Console
The Console app shows system logs and events. Click Spotlight Search, type Console and double click. The underlying files are in /var/log
and ~/Library/Logs/
- Click thew Now button to pause the live view.
- If XCode Instruments is installed, additional pre-defined instrumentation profiles are available under Console } Services
- Click Action } Include Info/Debug Messages for additional debugging
- Open a logarchive file (see above) with File } Open.
Activity Monitor
Activity Monitor is a graphical tool to look at CPU, Memory, and more: https://support.apple.com/en-us/HT201464
Instruments
Instruments is bundled with XCode and provides functions such as a CPU sampling profiler: https://help.apple.com/instruments/mac/current/#/dev7b09c84f5
Capture System-wide CPU Sampling Profiler Data
- Install XCode
- After installing, click Spotlight Search, type Instruments and double click.
- Select the
Time Profiler
template and clickChoose
. - In the top left, click the record button.
- Reproduce the problem.
- In the top left, click the stop button.
- Click File } Save As to export the profile. A
${name}.trace
file is exported.
Analyze CPU Sampling Profiler Data
- Click View } Utilities } Show Run Info to see the absolute wall clock timestamp of the start of the profile.
- Select and drag to zoom in on a time period of interest.
- Filters at the top allow for quickly switching between thread/process views, per-process stacks, etc.
- In the stack view, when clicking on the right expand arrow, hold down ⌥ as you click to recursively expand the largest path automatically.
Memory
Roughly, 'available' memory is Free + Inactive + Speculative (if Free has Speculative subtracted as vm_stat does) + File-backed pages
The size of a page on OS X is 4096 bytes.
Wired memory (also called resident memory) stores kernel code and data structures that must never be paged out to disk. Applications, frameworks, and other user-level software cannot allocate wired memory. However, they can affect how much wired memory exists at any time. For example, an application that creates threads and ports implicitly allocates wired memory for the required kernel resources that are associated with them. Heart heist mac os. [.]
Wired memory pages are not immediately moved back to the free list when they become invalid. Instead they are 'garbage collected' when the free-page count falls below the threshold that triggers page out events. [.]
The active list contains pages that are currently mapped into memory and have been recently accessed.
Life: the game mac os. The inactive list contains pages that are currently resident in physical memory but have not been accessed recently. These pages contain valid data but may be removed from memory at any time.
The free list contains pages of physical memory that are not associated with any address space of VM object. These pages are available for immediate use by any process that needs them.
Saturated Mac Os Catalina
When the number of pages on the free list falls below a threshold (determined by the size of physical memory), the pager attempts to balance the queues. It does this by pulling pages from the inactive list. If a page has been accessed recently, it is reactivated and placed on the end of the active list. In OS X, if an inactive page contains data that has not been written to the backing store recently, its contents must be paged out to disk before it can be placed on the free list.
[O]n Mac OS X 10.5 we introduced a new, fifth category of memory, speculative memory, used to hold pages that have been read from disk speculatively.
In Activity Monitor, Cached Files is defined as the following, and experiments show this is approximated by 'File-backed pages' in vm_stat:
Cached Files: Memory that was recently used by apps and is now available for use by other apps. For example, if you've been using Mail and then quit Mail, the RAM that Mail was using becomes part of the memory used by cached files, which then becomes available to other apps. If you open Mail again before its cached-files memory is used (overwritten) by another app, Mail opens more quickly because that memory is quickly converted back to app memory without having to load its contents from your startup drive.
Detailed memory statistics: https://developer.apple.com/library/content/documentation/Performance/Conceptual/ManagingMemory/Articles/VMPages.html#//apple_ref/doc/uid/20001985-CJBJFIDD
nmond
nmond is a fork of the AIX/Linux nmon tool: https://github.com/stollcri/nmond
Install:
Run:
Unicorn from legend. nmond does not support the headless logging features of the AIX/Linux nmon, so it is only useful for live monitoring.
Tips
In Finder's Open File dialog, type / (or Shift+Command+G) to open a dialog to paste a direct absolute path of a folder to open.
Network
Disable delayed ACKs: Add net.inet.tcp.delayed_ack=0
to /etc/sysctl.conf and restart
File I/O
fs_usage
fs_usage traces filesystem syscalls: https://developer.apple.com/library/archive/documentation/Performance/Conceptual/FileSystem/Articles/FileSystemCalls.html#//apple_ref/doc/uid/20001989-97106
Start:
Stop:
Example output:
diskutil
List disks example:
Unmount a disk example:
Eject a disk example:
mds_stores
The mds_stores
process may use high CPU as part of file indexing. If you do not need file indexing, disable it with:
To show the indexing status:
To re-enable indexing:
If you do need file indexing, use fs_usage to find which files are driving the indexing and consider excluding their parent directories: System Preferences } Spotlight } Privacy } Add a folder or disk to exclude
sysdiagnose
Saturated Mac Os Download
sysdiagnose captures various system logs and information:
- Click Spotlight Search, type Activity Monitor and double click
- Click View } Run System Diagnostics.
- Click OK
- When complete, a Finder window opens pointing to a
sysdiagnose_${.}
folder andsysdiagnose_${.}.tar.gz
file.
Saturated Mosfet
Alternatively, from the Terminal, run sudo sysdiagnose
.
Saturated Mac Os X
File highlights:
sysdiagnose.log
for macOS version, e.g.Mac OS X 10.15.6 (Build 19G73)
system_logs.logarchive
for a full logarchive (see above)ps.txt
,ps_thread.txt
, andtop.txt
for process and thread activity statisticsspindump.txt
for process CPU samplingfs_usage.txt
for I/O activity
Previous Section (HP-UX) | Next Section (Java) | Back to Table of Contents