TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Dropbox will kill your insane MacBook Air 2013 battery

97 点作者 nicoschuele将近 12 年前

22 条评论

jwr将近 12 年前
Dropbox is <i>terrible</i> with CPU usage. This is something I reported to them several times, but it seems they don&#x27;t really care.<p>Last I tested, Dropbox consumed CPU for ANY changes ANYWHERE in your filesystem, not just within the Dropbox folder. So its (slow) code processed changes even when you untarred a large set of files somewhere in &#x2F;tmp.<p>I also stopped using Dropbox for storing my code because of that — it&#x27;s nearly useless, as it consumes so much CPU and eats so much battery life, that it simply isn&#x27;t worth the effort.<p>Another problem with Dropbox is that upon login it indexes the entire Dropbox, which if you have an HDD basically kills the machine for several minutes, e.g. you can&#x27;t do anything else. That happens to me on a Mac Pro. On an SSD-equipped MacBook things are better, but it&#x27;s still a monstrous operation.<p>And to everyone that says you should not store code in dropbox: a) there are good and legitimate reasons for doing so, b) dropbox could work a little more on optimizing CPU usage instead of adding &quot;save your photos to Dropbox&quot; features.
评论 #5983466 未加载
评论 #5983515 未加载
评论 #5983776 未加载
cnvogel将近 12 年前
That finding might be quite interesting and all... but I&#x27;m thoroughly confused about that guy always quoting power consumption in mAh (which is the unit for electrica charge).<p>I&#x27;d also check if that guy&#x27;s dropbox daemon(s) are stuck in an obvious loop. I&#x27;m logged on in my private server, and when it&#x27;s idle there&#x27;s hardly any activity on the dropbox threads, the main CPU consumer is one servicing what I suspect to be the main select() loop. And that thread basically stat()ing the .dropbox&#x2F;config.dbx file every 2 seconds, and reads 16 bytes out of it. That should hardly be measureable in terms of power consumptions on a modern CPU.
评论 #5983481 未加载
omarrr将近 12 年前
&gt; I use it to store my code repository [...] Not using Dropbox is not an option for me as I switch machines several times during the day.<p>I&#x27;d suggest you invest in a hosted git repo.
评论 #5983301 未加载
评论 #5983410 未加载
评论 #5983190 未加载
评论 #5983275 未加载
评论 #5983530 未加载
bherms将近 12 年前
I had this happen in the past too and found it to be the result of two issues:<p>1) Using dropbox to house a very large git repo with massive changes and tons of branches... Every time I switched branches, the hundreds of files would change and obviously kick off a major sync job.<p>2) There were a few files in a folder than had the owner set to the wrong owner and Dropbox couldn&#x27;t get permission to access them. This caused it to get stuck in a loop trying to sync those files and Dropbox ended up running my CPU up to over 100% load.<p>Fix those issues and you shouldn&#x27;t see it causing any more problems with your battery life.
评论 #5983270 未加载
评论 #5983288 未加载
评论 #5983266 未加载
评论 #5983435 未加载
maikhoepfel将近 12 年前
The only takeaway is that his power usage shouldn&#x27;t be that high with Dropbox idling&#x2F;paused. But given that he&#x27;s * surprised at it using a lot of power when doing the initial sync * decided to have a git repo inside Dropbox (just don&#x27;t do it, you will run into trouble; and it will cause heavy sync activity, thus waking CPU and wifi) * using a unit of capacity to express power consumption<p>I&#x27;m not sure I trust his methods.<p>I regularly turn off Dropbox on and off when switching between mobile broadband and wifi, and haven&#x27;t seen any difference in power consumption. That&#x27;s on Ubuntu 13.04 @ Thinkpad T530.
评论 #5983324 未加载
评论 #5983370 未加载
rasmuskl将近 12 年前
One solution to the whole &quot;storing source in dropbox&quot; problem that I liked to use previously (using bitbucket now instead) is just to have a bare git repo in dropbox + the real checkout somewhere else and just push commits to the bare dropbox repo whenever I&#x27;m about to switch machine. Could even be set up to happen more automagically since the repo isn&#x27;t shared.<p>Syncing binaries (I mainly work in C#) and lots of small changes seems silly to me.
Osmium将近 12 年前
I switched from Dropbox to SpiderOak recently, and they&#x27;re a bit better, but feels so clunky. I&#x27;m just about fed up with all of them. I use CrashPlan for backups and they&#x27;re at least good for CPU usage because they have a preference -- max CPU (%) when you&#x27;re at the computer, and max CPU when you&#x27;re away, which really does help.<p>Those who are using Dropbox may find something like cpulimit[1] useful. This limits the CPU usage of any process by repeatedly sending SIGSTOP and SIGCONT signals to your process. It&#x27;s on homebrew for OS X. I think there&#x27;re some other alternatives available too but can&#x27;t remember off hand. But if the article&#x27;s accurate, Dropbox has issues even when it&#x27;s not indexing heavily.<p>[1] <a href="https://github.com/opsengine/cpulimit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;opsengine&#x2F;cpulimit</a>
评论 #5984203 未加载
waterhouse将近 12 年前
<i>&quot;I just have to change my habit of having it constantly on while working. Turn Dropbox on and sync before starting to work and then turn it off.&quot;</i><p>Hohoho. Allow me to suggest a solution. Suppose that you would be ok with having Dropbox sync files every five minutes. Let&#x27;s suppose that 10 seconds is usually more than enough to do whatever syncing is necessary. Well, then:<p><pre><code> $ while :; do killall -STOP Dropbox; sleep 300; killall -CONT Dropbox; sleep 10; done </code></pre> I do things like this to throttle the CPU usage and, in some cases, the power consumption of applications that really don&#x27;t need what they&#x27;re using. This really should be a feature provided by the operating system, but in the meantime, I resort to ridiculous hacks of this sort. (Note that, if you ^C the above loop, Dropbox will likely be still STOPped and you&#x27;ll have to CONT it again. It is possible to write a more sophisticated program to address this problem.)
threeseed将近 12 年前
This happens to me as well.<p>The Dropbox daemon wakes up every 10-15 seconds, uses 15% of the CPU then goes back to sleep. All this without any files changed or the index being affected. On 10.8, 10.9 with official versions and betas. Noticeable because I am on an older C2D MacBook Pro.<p>Wondering whether it&#x27;s a side effect of something else installed e.g. iStat Menus.
nicholassmith将近 12 年前
This is interesting, I&#x27;ve also got a 2013 MBA and use DropBox but I&#x27;ve not seen a big dip in battery usage. I might do a bit more testing this week and see whether it has had an impact and I&#x27;ve just not realised, and&#x2F;or I&#x27;ve put it down to the code-compile-simulator cycle.
tluyben2将近 12 年前
I see this problem happening only to me when it&#x27;s used as code repository. Which is what he is doing. I had that for one project because the client didn&#x27;t want to use git, but it&#x27;s horrible. So, logically, when you have a lot of files changing all the time (compiling (xcode, eclipse), adding libraries (node, RoR)) you&#x27;ll see dropbox taking over your computer. For all other uses it seems fine.<p>Note also that when you have the issue with a lot of small files, during&#x2F;after dropbox is done, Finder &#x2F; mds will jump to the top of your top indexing the files. I disabled mds in my projects directory and will never place active source directories in dropbox again.
评论 #5983211 未加载
watson将近 12 年前
Can anyone confirm his findings? I imagine that if this is real, then this is a problem for all MacBook owners not just the latest MacBook Air.<p>I have a 13&quot; MacBook Air, medio 2011. I bought it almost right after it was released and have used it as my only computer almost every day since. I have the Dropbox agent running all the time.<p>While working last Sunday I got 5.5 hours of battery life out of it and I&#x27;ve never taken good care of the battery. I never drain it unless I&#x27;m not near a power outlet, in which case I just have it plugged in all day.<p>My current battery health information shows: Cycle Count: 253, Condition: Normal
da_maire将近 12 年前
I have a cron script running on my MacBook to make sure the Dropbox client priority is always set to 20 (lowest). I also pause the client manually when moving to battery power. I really wish there was a better solution, like switching to a similar service that offers decent (or at least acceptable) software, but almost everyone else uses the same setup with terrible &#x27;universal&#x27; Java&#x2F;Python&#x2F;etc-based clients that absolutely suck at synchronizing large amounts of data.
zurn将近 12 年前
Laptop operating systems need to start keeping tabs on what&#x27;s using your battery, like Android does (with mixed success but that&#x27;s another story).
评论 #5983556 未加载
lcnmrn将近 12 年前
Open Dropbox when you need to sync, then quit the process. Make sure it doesn&#x27;t run at OS X start up. I don&#x27;t see why most of the users want to have a perfect sync all day long since it doesn&#x27;t happen in real time (large files, slow network, etc.)
TheAnimus将近 12 年前
Oh if only it was one App that killed the battery on the last laptop I bought. Before nuking the default windows install, I did a quick test, with all the crapware that comes as standard, it managed about 4 hours. Fresh install 6.5 hours.
评论 #5983629 未加载
OrdojanAndrius将近 12 年前
Since I&#x27;m stuck using an old computer I made a small script that turns Dropbox on every few hours and kills it after 10 minutes. I don&#x27;t sync data all the time so this solution works well for me and I save system resources.
Already__Taken将近 12 年前
I push to a bare repo in a dropbox folder because I can&#x27;t for the life of me get a secure connection through the work firewalls &#x2F; proxy so I don&#x27;t bother and let dropbox deal with it.
diziet将近 12 年前
Doesn&#x27;t seem to happen with the latest self-updated version of dropbox and 10.8.4 to such an extreme, on a retina MBP. I get 15 extra minutes.
lord_quas将近 12 年前
Thats awful, one can only assume this affects MBP as well. I think I&#x27;ll now only turn DB on whenever I&#x27;m on A&#x2F;C.
评论 #5983088 未加载
9h1d9j809s将近 12 年前
I have noticed this as well. And it&#x27;s not just Dropbox. I have turned off Dropbox, Google Drive and Little Snitch.
czottmann将近 12 年前
Which Dropbox client version are we talking about?
评论 #5983354 未加载