{"id":2327,"date":"2014-03-23T00:28:57","date_gmt":"2014-03-23T07:28:57","guid":{"rendered":"https:\/\/mathpirate.net\/log\/?p=2327"},"modified":"2014-03-23T00:28:57","modified_gmt":"2014-03-23T07:28:57","slug":"winston-high-cpu-usage","status":"publish","type":"post","link":"https:\/\/mathpirate.net\/log\/2014\/03\/23\/winston-high-cpu-usage\/","title":{"rendered":"Winston High CPU Usage"},"content":{"rendered":"<p>As part of my home seismometer network, I set up an installation of Winston Wave Server.  It was far easier to set up and get my data (from homemade seismometers) into than Earthworm.  However, I noticed that it was running on the hot side.  Even when idle, it was using 99% CPU.  I thought that was strange, but it wasn&#8217;t causing any problems, so I didn&#8217;t feel like trying to fix it.<\/p>\n<p>Until today, when I expanded my network to a second node and found that it couldn&#8217;t keep up with the data.<\/p>\n<p>Now, I know that people run Winston with a large number of stations and channels.  It seemed very odd that two stations and seven total channels was making Winston chug along for me.  Sure, I have it on a box that&#8217;s not super high-spec, but it should be enough to handle more than seven channels.  The docs even say something about running 200-300 stations before needing to optimize.<\/p>\n<p>So clearly, something was wrong.<\/p>\n<p>I reviewed all the config settings.  Nothing.<\/p>\n<p>Then I found a &#8220;no input&#8221; flag, -i.  I was running Winston as a service on Linux, so it didn&#8217;t need direct input, so I decided to give that flag a try.<\/p>\n<p>Instantly, CPU went from maxed out to barely doing anything.<\/p>\n<p>Not quite sure what the interactive input mode was trying to do when there wasn&#8217;t any input for it, but clearly, it wasn&#8217;t anything good.  Now my server is happily handling seven channels without a complaint, and the server no longer feels like it&#8217;s going to burst into flames.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As part of my home seismometer network, I set up an installation of Winston Wave Server. It was far easier to set up and get my data (from homemade seismometers) into than Earthworm. However, I noticed that it was running on the hot side. Even when idle, it was using 99% CPU. I thought that [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[227,226],"_links":{"self":[{"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/posts\/2327"}],"collection":[{"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/comments?post=2327"}],"version-history":[{"count":1,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/posts\/2327\/revisions"}],"predecessor-version":[{"id":2328,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/posts\/2327\/revisions\/2328"}],"wp:attachment":[{"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/media?parent=2327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/categories?post=2327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/tags?post=2327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}