什么是云,为什么它可以在Mac上运行?

什么是云,为什么它可以在Mac上运行?

You might have noticed something named cloudd running on your Mac while using Activity Monitor. Should you be worried? What is this? This process is part of macOS, and is related to iCloud.

您可能已经注意到使用Activity Monitor在Mac上运行了名为cloudd的东西。 你应该担心吗? 这是什么? 此过程是macOS的一部分,与iCloud有关。

This article is part of our ongoing series explaining various processes found in Activity Monitor, like kernel_task, hidd, mdsworker, installd, WindowServer, blued, launchd, backup, opendirectoryd, powerd, coreauthd, configd, mdnsresponder, UserEventAgent, nsurlstoraged, commerce, parentalcontrold, sandboxd, and many others. Don’t know what those services are? Better start reading!

这篇文章是一部分我们正在进行一系列的解释活动监视器中发现的各种Craft.io,比如kernel_taskhiddmdsworkerINSTALLDWindowServer发蓝launchd会备份opendirectoryd的powerdcoreauthdconfigdmdnsresponderUserEventAgentnsurlstoraged商业parentalcontrold沙盒 等等 。 不知道这些服务是什么? 最好开始阅读!

Today’s process, cloudd, is a daemon, which means it runs in the background handling system tasks. This particular daemon is related to CloudKit, as a quick look at the man page shows us. You can see the man page yourself by typing man cloudd in the Terminal, but here’s what you’ll see:

当今的过程,已成云,是一个守护程序,这意味着它在后台处理系统任务中运行。 该特定守护程序与CloudKit有关,快速浏览手册页会向我们展示。 您可以通过在终端中键入man cloudd来自己查看手册页,但是您将看到以下内容:

cloudd is the system daemon backing the CloudKit feature.

cloudd是支持CloudKit功能的系统守护程序。

Of course, knowing about this is only helpful if you know what CloudKit is in the first place. To find that out let’s check out the Apple Developer page, which explains how third party programs can use CloudKit:

当然,只有首先了解什么是CloudKit,了解这一点才有用。 要找到答案,让我们查看一下Apple Developer页面 ,该页面说明了第三方程序如何使用CloudKit:

The CloudKit framework provides interfaces for moving data between your app and your iCloud containers. You use CloudKit to take your app’s existing data and store it in the cloud so that the user can access it on multiple devices. You can also store data in a public area where all users can access it.

CloudKit框架提供了用于在您的应用程序和iCloud容器之间移动数据的接口。 您可以使用CloudKit获取应用程序的现有数据并将其存储在云中,以便用户可以在多个设备*问它。 您还可以将数据存储在所有用户都可以访问的公共区域中。

Basically this means that any application can use CloudKit in order to save files on iCloud for syncing to other systems. Apple also uses CloudKit for syncing your Mac’s desktop and documents to other devices. The cloudd process works behind the scenes any time an application syncs files to and from iCloud on your Mac.

基本上,这意味着任何应用程序都可以使用CloudKit来将文件保存在iCloud上以同步到其他系统。 苹果还使用CloudKit 将Mac的桌面和文档同步到其他设备 。 每当应用程序在Mac上与iCloud之间来回同步文件时,云化过程就会在后台进行。

For the most part, you shouldn’t see cloudd using a lot of CPU or memory, but there are a few exceptions. If you’re syncing a large video file, for example, cloudd might need to work hard at that for a little while.

在大多数情况下,您应该不会看到使用大量CPU或内存造成的混乱,但是有一些例外。 例如,如果您要同步一个大的视频文件,则可能需要花一会儿时间才能乌云密布。

If you’re a Parallels user, you might be noticing this a lot, as Parallels explains here. The problem: iCloud syncs the entire Documents folder. Some versions of Parallels store virtual machines in Documents, and VMs can be pretty big files. Oops. The quick fix is to move your virtual machines to another folder, outside Documents, or just turn off document syncing entirely.

如果您是Parallels用户,那么您可能会注意到很多, 如Parallels在此解释 。 问题:iCloud会同步整个Documents文件夹。 某些版本的Parallels将虚拟机存储在Documents中,而VM可能是很大的文件。 哎呀。 快速解决方案是将虚拟机移至文档外部的另一个文件夹,或者完全关闭文档同步。

If these aren’t your problem, try closing any applications that sync with iCloud. If that stops the problem, you’ve possibly discovered a bug with that app, and you should report it to the developer. You could also consider freeing up space in your iCloud drive: syncing fewer files should reduce the workload.

如果这些不是您的问题,请尝试关闭所有与iCloud同步的应用程序。 如果这样可以解决问题,则您可能已经发现该应用程序存在错误,应将其报告给开发人员。 您还可以考虑释放iCloud驱动器中的空间 :同步较少的文件可以减少工作量。

Photo credit: Pakhnyushchy/Shutterstock.com

图片来源: Pakhnyushchy / Shutterstock.com

翻译自: https://www.howtogeek.com/344941/what-is-cloudd-and-why-is-it-running-on-my-mac/