Re: Threads, Sockets and OSX
Eric Wong <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.general |
|---|---|
| Message-ID | <20181207195319.e63gw4q2m672ydnu@dcvr> |
Peter Hickman <[email protected]> wrote: > I have a second Mac of lower spec and slightly older version of OSX (2 CPUs > vs 4 CPUs, 10.13.6 vs 10.14.1), I'll check that out ... > > It does the 100% usage followed by 0% usage that my main computer does but > the 100% usage can last minutes rather than seconds and the 0% usage runs > between 5 and 15 seconds. Overall it completes the test faster because it > spends less time at 0% usage Have you tried any profiling tools which can break down where the CPU usage is coming from (and where the 0% usage is sleeping)? I'm not familiar with OSX at all, but things like "perf" on Linux or even iostat or looking at the right columns in "top" can be helpful. > One possible difference is that the main computer has a normal disk and the > older machine has an SSD. I've been wondering if it's some OSX background > task that is kicking and and slowing things down. If it was disk bound then > the SSD would get past that bottleneck much faster (not to mention far > fewer files on my second mac) Something like "top" would be useful for checking background activity > To test this thesis I would need to install an SSD in my main computer, > which is very, very tempting :) And do you know how disk/file-system intensive your application is? I know Linux does filesystem caching pretty aggressively compared to other OSes. Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>