Re: Threads, Sockets and OSX

Peter Hickman <[email protected]>
Newsgroups gmane.comp.lang.ruby.general
Message-ID <CALxYQy5dBNwyfAQiwxbisinqtHObfm0h_60YL+FMYVMvmO22Cw@mail.gmail.com>
Just as a follow up. For a test I booted the Mac off a usb version of Mint
Linux 19 and ran the tests again. The installed version of ruby was
2.5.1p57. The problem disappeared and the tests ran end to end without any
noticeable freezing. However the CPU history graph never really hit more
than 75% usage but the test ran much much faster. A whole order of
magnitude faster (from 300-500 TPS to 1500-2500 TPS)

In some respects it wasn't a fair test as Mint was not installed on the
hard drive and running entirely in memory

The second test was on a new Mac Mini (12 cores, 64gb ram and an 1T ssd)
The performance was even worse. 5-10 seconds of work that made a small blip
on the CPU history graph and the 30-40 seconds of freezing

At this point I'm going to say this is a OSX or OSX and Ruby issue more
than purely a Ruby issue

A rewrite in Python might clarify things further

I am sorely tempted to boot the new Mac Mini with Mint and see show that
works out :)


Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.