Follow

macos performance help? 

lately pretty much every time I open my laptop, this happens: memory usage explodes, and I have to wait for 90 seconds or so (sometimes longer) before anything becomes responsive.

how can I make this... not happen? this is an old macbook air (mid-2013), 8gb ram, running Mojave 10.14.6

· · Web · 5 · 1 · 1

macos performance help? 

@aparrish can you look at activity monitor to see what's causing it? like if it's open when you close it? or is it all the way unresponsive. also lol do you have docker installed

macos performance help? 

@whoisgina it looks like some combination of chrome, firefox and kernel_task are using the memory—I'm not sure which of the memory metrics is more important to look at (memory, real memory, compressed memory?). kernel_task usually starts using 500% of the processor when this happens too. my best guess is that opening the laptop triggers firefox to redraw all of its tabs for some reason, which then requires uncompressing and reallocating all that memory?

macos performance help? 

@aparrish hmm i think firefox tabs are sleeping unless you click em again, same with chrome? you could try a plugin that suspends inactive tabs like (quick google results) auto tab discard for FF, this made my macbook air of a similar vintage usable before it mysteriously died

macos performance help? 

@aparrish mhh, is it maybe waking up from suspend to disk instead of suspend to ram? That might explain it doing lots of RAM-shoveling around.
Unfortunately I don't have the MacOS experience to tell those apart beyond "one is instant and the other takes longer as RAM gets repopulated from disk and then stuff might still shuffle"

re: macos performance help? 

@aparrish i see something similar in linux when i come back from being switched away from an x11 vt for a long time. at first i thought the whole system goes unresponsive but then i realized it is just firefox, the rest of the system is okay, i can launch terminals and stuff. the longer i'm away from it, the longer the wait for ff to sort itself out. could we be experiencing the same problem?

if you quit ff before closing the laptop, do you still experience it?

re: macos performance help? 

@pho4cexa I am going to try to run a more systematic experiment on this point! firefox is definitely hogging memory but the entire system is definitely unresponsive, not just firefox 😕

macos performance help? 

@aparrish hey i agree with the other voices that this might be mechanical, but kernal_task isn't only a mechanical process- lots of internal tasks are stuck invisibly under it. if you sort activity monitor by threads or idle wakeups rather than % CPU is there anything out of the ordinary?

macos performance help? 

@everest oh hmm I'll check this the next time it happens!

macos performance help? 

@aparrish yeah check it out. for instance, i recently had to scrub an old vpn ultility that was autolaunching and eating like an incredible amount of my CPU load while hiding that load under "kernal_task". the other thing you can do is a fresh reboot then immediately open activity montitor and sort by PID, looking for processes that automatically kick on after your core internal structural stuff, usually somewhere around the 300-400s for things that should not be running

macos performance help? 

@everest ohhh good idea. thank you!

Sign in to participate in the conversation
Friend Camp

Hometown is adapted from Mastodon, a decentralized social network with no ads, no corporate surveillance, and ethical design.

<svg xmlns="http://www.w3.org/2000/svg" id="hometownlogo" x="0px" y="0px" viewBox="25 40 50 20" width="100%" height="100%"><g><path d="M55.9,53.9H35.3c-0.7,0-1.3,0.6-1.3,1.3s0.6,1.3,1.3,1.3h20.6c0.7,0,1.3-0.6,1.3-1.3S56.6,53.9,55.9,53.9z"/><path d="M55.9,58.2H35.3c-0.7,0-1.3,0.6-1.3,1.3s0.6,1.3,1.3,1.3h20.6c0.7,0,1.3-0.6,1.3-1.3S56.6,58.2,55.9,58.2z"/><path d="M55.9,62.6H35.3c-0.7,0-1.3,0.6-1.3,1.3s0.6,1.3,1.3,1.3h20.6c0.7,0,1.3-0.6,1.3-1.3S56.6,62.6,55.9,62.6z"/><path d="M64.8,53.9c-0.7,0-1.3,0.6-1.3,1.3v8.8c0,0.7,0.6,1.3,1.3,1.3s1.3-0.6,1.3-1.3v-8.8C66,54.4,65.4,53.9,64.8,53.9z"/><path d="M60.4,53.9c-0.7,0-1.3,0.6-1.3,1.3v8.8c0,0.7,0.6,1.3,1.3,1.3s1.3-0.6,1.3-1.3v-8.8C61.6,54.4,61.1,53.9,60.4,53.9z"/><path d="M63.7,48.3c1.3-0.7,2-2.5,2-5.6c0-3.6-0.9-7.8-3.3-7.8s-3.3,4.2-3.3,7.8c0,3.1,0.7,4.9,2,5.6v2.4c0,0.7,0.6,1.3,1.3,1.3 s1.3-0.6,1.3-1.3V48.3z M62.4,37.8c0.4,0.8,0.8,2.5,0.8,4.9c0,2.5-0.5,3.4-0.8,3.4s-0.8-0.9-0.8-3.4C61.7,40.3,62.1,38.6,62.4,37.8 z"/><path d="M57,42.7c0-0.1-0.1-0.1-0.1-0.2l-3.2-4.1c-0.2-0.3-0.6-0.5-1-0.5h-1.6v-1.9c0-0.7-0.6-1.3-1.3-1.3s-1.3,0.6-1.3,1.3V38 h-3.9h-1.1h-5.2c-0.4,0-0.7,0.2-1,0.5l-3.2,4.1c0,0.1-0.1,0.1-0.1,0.2c0,0-0.1,0.1-0.1,0.1C34,43,34,43.2,34,43.3v7.4 c0,0.7,0.6,1.3,1.3,1.3h5.2h7.4h8c0.7,0,1.3-0.6,1.3-1.3v-7.4c0-0.2,0-0.3-0.1-0.4C57,42.8,57,42.8,57,42.7z M41.7,49.5h-5.2v-4.9 h10.2v4.9H41.7z M48.5,42.1l-1.2-1.6h4.8l1.2,1.6H48.5z M44.1,40.5l1.2,1.6h-7.5l1.2-1.6H44.1z M49.2,44.6h5.5v4.9h-5.5V44.6z"/></g></svg>