site stats

Linux scheduler bug got you down? Here's a fast fix


<!–Linux scheduler Trojan Horse got you down? Here’s a fast restore Knowledgeable News prognosis each weekday</p> </p></div> </p></div> </header> <section class="epo" id="drr-top-ad"><!-- Related --></p> </section> <figure class="hero-img"><img src="http://greattodaynews.com/wp-content/uploads/2016/04/78430543-100527386-primary.idge.jpg" alt="Linux scheduler bug got you down? Here's a fast fix" /><figcaption> <p> Credit:<span></p> <p> Thinkstock<br /> </span></p> </figcaption></figure> <section class="deck"> <h2>Bugs in the Linux scheduler can result in efficiency degradation in heavily multithreaded loads, But there is a do-it-yourself fix to be had</h2> </section> <div class="modal eml-friend-wrapper" id="emailModal"> <div class="eml-ty eml-friend-success"> <i class="ss-icon ss-delete" /></p> <h3>Thanks</h3> <p class="msg-sent">Your message has been sent.</p> </p></div> <div class="eml-friend-error"> <i class="ss-icon ss-delete" /></p> <h3>Sorry</h3> <p class="msg-sent">There Was an error emailing this page.</p> </p></div> </div> <section class="bodee"> <p>$(‘#” + slotName + “‘).responsiveAd(screenSize:’971 1115’, scriptTags: []);if (Object.keys(IDG.GPT.companions).length > 0) IDG.GPT.refreshAd(‘” + slotName + “‘);”;<br /> var adDivString = “</p> <p>” + adString + “</p> <p>“;</p> <p> placementDiff = applyInsert($(this), adDivString);<br /> if (debug)<br /> console.log(“Just positioned an Ad and the placementDiff is: ” + placementDiff);</p> <p> placementTarget = cumulativeHeight + placementDiff + interModuleHeight + adHeightBuffer;</p> <p> else<br /> var moduleDivString = “”;<br /> var elementId = “drr-mod-“+moduleCounter;<br /> moduleDivString = “”;<br /> modules.push(elementId);</p> <p> placementDiff = applyInsert($(this), moduleDivString);<br /> if (debug)<br /> console.log(“Simply positioned a module and the placementDiff is: ” + placementDiff);</p> <p> placementTarget = cumulativeHeight + placementDiff + interModuleHeight + moduleHeightBuffer;<br /> moduleCounter++;</p> <p> loopCounter++;</p> <p> // Avoid inserting Elements too quickly as a result of non-Large figures inflating the cumulative Height<br /> if ($(this).is(“Determine”) && !$(this).is(“Figure.Large”))<br /> cumulativeHeight += grafHeight;</p> <p> else<br /> cumulativeHeight += $(this).Height() + grafHeight;</p> <p> );</p> <p> // clone Associated Stories module to return in after eighth para in article physique for Cell breakpoint display<br /> var $relatedStories = $(‘.Related-promo-wrapper’);<br /> if ($relatedStories.length)<br /> var $relatedStoriesClone = $relatedStories.clone();<br /> $relatedStoriesClone.insertAfter( “#drr-container > p:eq(7)”); </p> <p> // For Cellular handiest, Location Advert after 2nd paragraph.<br /> if (firstMobileAdHtml)<br /> $(firstMobileAdHtml).insertAfter(“#drr-container > p:eq(1)”);</p> <p> var $insiderPromo = $(‘.insider-promo-wrapper’);<br /> if ($insiderPromo.size)<br /> var $insiderPromoClone = $insiderPromo.clone();<br /> $insiderPromoClone.insertAfter( “#drr-container > p:eq(1)”);</p> <p> //Place left facet Element<br /> cumulativeHeight = 0;<br /> var leftPlacementTarget = tagHeight = leftPlacementTarget)<br /> if (debug)<br /> console.log(“congratulations… we’ve passed the initial Start point”);</p> <p> if (leftPlacementIndex == null)<br /> //it is Not good sufficient to No Longer be a left Avoid – it additionally isn’t a </p> <p> with an right away previous small or medium image left Keep Away From.<br /> if (!isLeftAvoid($(this)) && noPrevFigures($(this)) )<br /> leftPlacementIndex = $(this).index();<br /> $leftPlacementElement = $(this);<br /> leftPlacementLookaheadStart = cumulativeHeight;<br /> if (debug)<br /> console.log(“is just not a left Steer Clear Of and no prev figures. ########## set placementIndex (“+leftPlacementIndex+”) and lookaheadStart (“+leftPlacementLookaheadStart+”) ##########”);</p> <p> else<br /> if (debug)<br /> console.log(“is a left Keep Away From or has previous figures. continue”);</p> <p> else<br /> if (debug)<br /> console.log(“#### leftPlacementIndex already set to “+leftPlacementIndex+”. having a look AHEAD…”);</p> <p> //Now Not null; has been set<br /> if ((cumulativeHeight – leftPlacementLookaheadStart) > leftIntervalHeight)<br /> if (debug)<br /> console.log(“###### THRESHOLD REACHED. LOOKAHEAD COMPLETE. End ###### (cumulativeHeight – leftPlacementLookaheadStart) (“+(cumulativeHeight-leftPlacementLookaheadStart)+”) > leftIntervalHeight (“+leftIntervalHeight+”).”);</p> <p> return false;<br /> else<br /> if (debug)<br /> );</p> <p> if (leftPlacementIndex != null && elementNotNearEnd($leftPlacementElement, leftPixelWindow))<br /> if (debug)<br /> console.log(” insert into index “+leftPlacementIndex);</p> <p> $(“#drr-container”).youngsters().eq(leftPlacementIndex).ahead of(“</p> <p>“);</p> <p> IDG.GPT.trackOmniture();</p> <p> // Add Proper rail module content material<br /> for (var i=Zero; i” + adString + “</section> </article> </section> </div> <p>“;</p> <p> perform getEpoParams() </p> <p> /**<br /> * @param jqo Unique jquery object Goal<br /> * @param divString The div to be inserted.<br /> * @return Distinction in Height between Unique placement Target and final Goal.<br /> * Tests first 6 Parts for an allowable placement (600 pixel window).<br /> * If none, Check nearby for Elements that aren’t Right avoids.<br /> * If none, Place Part sooner than current Goal.<br /> */<br /> function applyInsert(jqo, divString)<br /> if (debug)<br /> console.log(“applyInsert at prime and jqo index is: ” + jqo.index());</p> <p> for (var i=Zero; i Zero)<br /> kids = $(“#drr-container”).kids().slice(jqo.index(), allowElement.index() );</p> <p> else<br /> youngsters = $(“#drr-container”).kids().slice(allowElement.index(), jqo.index());</p> <p> if (children != null)<br /> kids.EACH AND EVERY(function(i)<br /> if (debug)<br /> console.log(“About to add this Element’s Top to heigh diff offset”);<br /> console.log($(this));</p> <p> Top += $(this).Peak() + grafHeight;<br /> );</p> <p> if (offset 300)<br /> if (debug)<br /> console.log(“isRightAvoid: discovered pre. return proper”);</p> <p> return authentic;</p> <p> if (jqo.is(“Determine”) && jqo.hasClass(‘Massive’))<br /> if (debug)<br /> console.log(“isRightAvoid: discovered Figure.Huge return real”);</p> <p> return proper;</p> <p> if (jqo.is(“Figure”) && jqo.hasClass(‘medium’) && jqo.hasClass(‘inline’))<br /> if (debug)<br /> console.log(“isRightAvoid: discovered Determine has Category medium and inline.”);</p> <p> return true;</p> <p> if (jqo.is(‘div’) && jqo.hasClass(‘Desk-wrapper’))<br /> if (debug)<br /> console.log(“isRightAvoid: discovered div with Classification Table-wrapper”);</p> <p> return proper;</p> <p> if (jqo.is(‘aside’))<br /> if (jqo.hasClass(‘sidebar’) && !jqo.hasClass(‘medium’))<br /> if (debug)<br /> console.log(“isRightAvoid: found aside with Type sidebar, with out Classification medium”);</p> <p> return genuine;</p> <p> if (jqo.hasClass(‘statsTable’))<br /> if (debug)<br /> console.log(“isRightAvoid: discovered apart with Class statsTable”);</p> <p> return proper;</p> <p> if (jqo.hasClass(‘obtain-asset’))<br /> if (debug)<br /> console.log(“isRightAvoid: discovered Category download-asset return proper”);</p> <p> return authentic;</p> <p> if (jqo.hasClass(‘tableLarge’))<br /> if (debug)<br /> console.log(“isRightAvoid: discovered Class tableLarge return proper”);</p> <p> return genuine;</p> <p> if (jqo.hasClass(‘reject’))<br /> if (debug)<br /> console.log(“isRightAvoid: discovered Class reject. return authentic”);</p> <p> return authentic;</p> <p> if (jqo.is(‘Desk’) && jqo.hasClass(‘scorecard’))<br /> if (debug)<br /> console.log(“isRightAvoid: found div with Class scorecard”);</p> <p> return genuine;</p> <p> return false;</p> <p> // Return authentic if Part has Category ‘reject’: is not going to Place drr modules/advertisements next to those Parts<br /> perform isRightReject(jqo)<br /> console.log(“in isRightReject”);<br /> if (jqo != null)<br /> if (jqo.hasClass(“reject”))<br /> if (debug)<br /> console.log(“isRightReject: found ‘reject’ Class”);</p> <p> return authentic;</p> <p> return false;</p> <p> return false;</p> <p> // Returns genuine if Height of all Elements after this one is greater than 500; false in any other case<br /> perform elementNotNearEnd(Part, pixelWindow)<br /> if (pixelWindow == null)<br /> pixelWindow = 500;</p> <p> if (Element == null)<br /> return false;</p> <p> var remainingHeight = 0;<br /> var youngsters = $(“#drr-container”).children().slice(Element.index());<br /> if (children == null)<br /> return false;</p> <p> children.EACH(operate(i)<br /> remainingHeight += $(this).Peak();<br /> );<br /> if ( remainingHeight > pixelWindow)<br /> return true;</p> <p> else<br /> if (debug)<br /> console.log(“Part too with regards to End. Remaining Top is: ” + remainingHeight + ” and window is ” + pixelWindow); </p> <p> return false;</p> <p> /**<br /> * Return authentic if need to Avoid this Component when putting left module.<br /> */<br /> function isLeftAvoid(jqo)<br /> if (jqo.is(“Figure”))<br /> if (debug)<br /> console.log(“isLeftAvoid: found Determine. return proper”);</p> <p> return real;</p> <p> if (jqo.is(“apart.pullquote”))<br /> if (debug)<br /> console.log(“isLeftAvoid: found pullquote. return actual”);</p> <p> return real;</p> <p> if (jqo.is(“pre”))<br /> if (debug)<br /> console.log(“isLeftAvoid: found pre. return actual”);</p> <p> return true;</p> <p> if (jqo.is(“div.gist”))<br /> if (debug)<br /> console.log(“isLeftAvoid: discovered github code block. return actual”);</p> <p> return proper;</p> <p> if (jqo.is(“apart”) && jqo.hasClass(“sidebar”) && jqo.hasClass(“medium”))<br /> if (debug)<br /> console.log(“isLeftAvoid: discovered medium sidebar. return authentic”);</p> <p> return real;</p> <p> if (jqo.hasClass(“statsTable”))<br /> if (debug)<br /> console.log(“isLeftAvoid: discovered Type statsTable. return proper”);</p> <p> return true;</p> <p> return false;</p> <p> /**<br /> * return genuine if there aren’t any figures earlier than the Goal placement that would possibly bleed down into placement Component<br /> */<br /> operate noPrevFigures($originalTarget)<br /> var targetIndex = $originalTarget.index();<br /> var numElementsLookBack = 5;<br /> var figureIndex = null;<br /> var figureHeight = null;<br /> var startIndex = targetIndex – numElementsLookBack </p> <div id="drr-container"> <p>The Linux kernel scheduler has deficiencies that forestall a multicore machine from making correct use of all cores for closely multithreaded loads, in step with a lecture and paper delivered past this month at the EuroSys ‘Sixteen conference in London,</p> <p>If You Are operating purposes that may well be affected, and would rather Now Not stay up for a restore from the kernel workforce, there is a patch available in a script supplied via a third birthday celebration.</p> <p>The paper, titled “The Linux Scheduler: a Decade of Wasted Cores,” Was Once authored via a sextet of researchers from the College of British Columbia and 4 other institutions. It describes four bugs in the kernel scheduler that result in some CPU cores to remain idle even when runnable threads are ready to be dispatched to a core.</p> <p>“Resulting performance degradations are within the range Thirteen-24% for typical Linux workloads,” the researchers say, “and REACH 138× in some corner cases.”</p> <figure class="large "><a class="zoom" href="http://images.techhive.com/images/article/2016/04/linux-scheduler-bug-100657318-orig.png"><img src="http://greattodaynews.com/wp-content/uploads/2016/04/linux-scheduler-bug-100657318-large.idge.png" alt="linux scheduler bug" width="620" height="118" /> <small class="credit">http://www.ece.ubc.ca/~sasha/papers/eurosys16-final29.pdf </small><figcaption> <p>CPU job in a Linux system suffering from the scheduler Computer Virus. The graph on the left shows two cores Now Not receiving a fair allotment of threads as a result of the Worm. The graph on the appropriate shows the CPU after applying the fix steered by way of the researchers.</p> </figcaption></figure> <p>The Bug does Not affect computer users. As referred to in a dialogue thread on Hacker Information, the issue includes complexities that arise when the usage of the Linux scheduler on multiprocessor techniques. The algorithm used by the scheduler to balance the burden across cores fails in certain instances — as an example, when a thread that Was prior to now asleep is awakened on an overloaded core, while other cores will not be in use.</p> <p>The paper describes one take a look at with apps written in the R language that tips at how the problem might come up when doing math and statistical work in multicore Linux environments.</p> <p>Such bugs don’t all the time announce their presence with a crash or a grasp, But somewhat by way of degraded efficiency, so they don’t seem to be all the time obtrusive, the researchers say.</p> <p>The patches urged by way of the researchers don’t appear to have been submitted yet to the Linux kernel maintainers. But those running heavy multicore hundreds on Ubuntu can practice the patches instantly with a script on hand on GitHub. The script obtains the dependencies wanted to construct the kernel, applies the wanted patches, and gives the option to either install the kernel then and there or build it into a .deb package to be used in other places.</p> <aside class="nativo-promo tablet desktop" id="" /></div> <div class="byline vcard author end-byline"> <p><img class="bylineImage imgId100354801 " src="http://greattodaynews.com/wp-content/uploads/2016/04/1461347358_serdaryegulalp2_crop-100354801-byline.jpg" alt="Serdar Yegulalp" /></p> <p> <!-- end .author-info --></p> </div> <p><!-- blx4 #1218 blox4.html --></p> <div class="article-intercept"> <a href="http://www.cio.com/article/2847396/it-skills/8-free-online-courses-to-grow-your-tech-skills.html#tk.cross_2cio_intrcpt"><br /> <i class="ss-icon ss-navigateright" /><em> From CIO:</em> Eight Free Online Courses to Develop Your Tech Abilities<br /> </a></p></div> <p> <!-- /.bodee --></p> <section id="funnel"> <section class="popular-brand-cols"> <section class="popular-col"><!-- /.promo --><br /> <!-- ./promo newsletter --></p> </section> <section class="brand-col"> </section> </section> <section class="featured-col"><!-- blx4 #937 blox4.simple --></p> </section> </section> <p> <!-- /role=main --><!-- /#page-wrapper --></p> <footer> <section class="brand"><span class="logo">InfoWorld</span><br /> <span class="tagline"> </span></p> <p> <span class="follow"><br /> <label>Follow us</label><br /> </span></p> </section> <section class="topics"> <nav id="ft1" /> <nav id="ft2" /></section> <section class="about"> </section> <section class="copyright"> <div class="wrapper"> <p>Copyright © 1994 – 2016 InfoWorld, Inc. All rights reserved.</p> <div class="network"> <div id="network-selector"> <p>Explore the IDG Network <i class="ss-icon tick">descend</i></p> </p></div> <p><!-- /#network-selector --> </div> <p><!-- /.network --> </div> <p><!-- /.wrapper --><br /> </section> </footer> <p><!-- Begin welcome ad overlay - gpt-overlay position --><br /> <!-- End welcome ad overlay - gpt-overlay position --></p> <p> <!-- Begin gpt-skin/gpt-pin/inread --></p> <p> <!-- End gpt-skin/gpt-pin/inread --> </p> <p><!-- Begin BlueKai Tag --></p> <p><!-- CryptoJS --></p> <p><!-- End BlueKai Tag --></p> <p><!-- START Nielsen Online SiteCensus? V6.0 --><br /> <!-- COPYRIGHT 2010 Nielsen Online --></p> <p><!-- END Nielsen Online SiteCensus? V6.0 --></p> <p><!-- SiteCatalyst code version: H.26.2. Copyright 1996-2013 Adobe, Inc. All Rights Reserved More info available at http://www.omniture.com --></p> <p><img src="http://idgenterprise.d1.sc.omtrdc.net/b/ss/infoworld-production/1/H.25--NS/0" height="1" width="1" border="0" alt="" /><!--/DO NOT REMOVE/--><br /> <!-- End SiteCatalyst code version: H.26.2. --></p></div> <p><br /> <br /><a href="http://www.infoworld.com/article/3060180/linux/linux-scheduler-bug-got-you-down-heres-a-fast-fix.html#tk.rss_all">Supply hyperlink </a></p> <div class="clear"></div> </div><!-- /entry --> <div id="comments"> <p> You must be logged in to post a comment <a href="http://greattodaynews.com/wp-login.php?redirect_to=http%3A%2F%2Fgreattodaynews.com%2Flinux-scheduler-bug-got-you-down-heres-a-fast-fix%2F"> Login </a> </p> </div><!-- #comments --> </div><!-- /main --> <div id="sidebar"> <div class="sidebarinner"> </div><!-- .sidebarinner --> </div><!-- /sidebar --> </div><!-- /container --></div><!-- end of wrapper --> <div id="footer"> <div id="foo_widget1"> <div id="flickr-widget-3" class="widget flickr_widget"><div class="widgetinner"><h3 class="widgettitle">Flickr Photo Stream</h3> <script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?count=10&display=random&layout=x&source=all_tag&tag=&size=s"></script><div class="clear"></div></div></div> </div> <div id="foo_widget2"> <div id="recent-posts-3" class="widget widget_recent_entries"><div class="widgetinner"> <h3 class="widgettitle">Recent Posts</h3> <ul> <li> <a href="http://greattodaynews.com/police-alert-at-oxford-circus-tube/">Police alert at Oxford Circus Tube</a> </li> <li> <a href="http://greattodaynews.com/these-are-the-best-black-friday-smartphone-deals/">These are the best Black Friday smartphone deals</a> </li> <li> <a href="http://greattodaynews.com/zimbabwe-why-did-war-veterans-ditch-mugabe/">Zimbabwe: Why Did War Veterans Ditch Mugabe?</a> </li> <li> <a href="http://greattodaynews.com/south-africa-broken-glass-scuffles-and-tired-eyes-amid-black-friday-chaos/">South Africa: Broken Glass, Scuffles and Tired Eyes Amid Black Friday Chaos</a> </li> <li> <a href="http://greattodaynews.com/why-many-pregnant-women-arent-screened-for-deadly-skin-cancers/">Why many pregnant women aren’t screened for deadly skin cancers</a> </li> </ul> </div></div> </div> </div> <div id="footer_data"> <ul class="footerpages"> <li class="first"><a href="http://greattodaynews.com/" title="Great Today News">Home</a></li> <li class="page_item page-item-6"><a href="http://greattodaynews.com/privacy-policy/">Privacy Policy</a></li> <li class="page_item page-item-195"><a href="http://greattodaynews.com/contact/">Contact Us</a></li> <li class="page_item page-item-198"><a href="http://greattodaynews.com/video-gallery/">Video Gallery</a></li> <li class="page_item page-item-201"><a href="http://greattodaynews.com/sitemap/">Sitemap</a></li> <li><a rel="nofollow" href="http://greattodaynews.com/feed/">RSS</a></li> <li class="right"><a href="#top" title="Great Today News" rel="home"><strong>↑</strong> Great Today News</a></li> </ul> <div class="clear"></div> <p id="footer-left-side"> <a href="http://greattodaynews.com/" title="Great Today News" rel="home">Great Today News</a> </p><!-- #site-info --> <p id="footer-right-side"> <a href="http://greattodaynews.com/wp-login.php">Log in</a> - Designed by <a href="http://www.greattodaynews.com/" title="Today News">Today News</a> <script type='text/javascript' src='http://greattodaynews.com/wp-includes/js/comment-reply.min.js?ver=4.8.3'></script> <script type='text/javascript'> /* <![CDATA[ */ var wpcf7 = {"apiSettings":{"root":"http:\/\/greattodaynews.com\/wp-json\/contact-form-7\/v1","namespace":"contact-form-7\/v1"},"recaptcha":{"messages":{"empty":"Please verify that you are not a robot."}},"cached":"1"}; /* ]]> */ </script> <script type='text/javascript' src='http://greattodaynews.com/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=4.9'></script> <script type='text/javascript' src='http://greattodaynews.com/wp-includes/js/wp-embed.min.js?ver=4.8.3'></script> </p> <!-- #footer-right-side --> </div><!-- /footer_data --> <div class="hide"> <div id="adv_here"> <h3 class="widgettitle">Widgetized Section</h3> <p>Go to Admin » appearance » Widgets » and move a widget into Advertise Widget Zone</p> </div> </div> <!-- Quantcast Tag --> <script type="text/javascript"> var _qevents = _qevents || []; (function() { var elem = document.createElement('script'); elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge") + ".quantserve.com/quant.js"; elem.async = true; elem.type = "text/javascript"; var scpt = document.getElementsByTagName('script')[0]; scpt.parentNode.insertBefore(elem, scpt); })(); _qevents.push({ qacct:"p-XSTdT3wyH_FGD" }); </script> <noscript> <div style="display:none;"> <img src="//pixel.quantserve.com/pixel/p-XSTdT3wyH_FGD.gif" border="0" height="1" width="1" alt="Quantcast"/> </div> </noscript> <!-- End Quantcast tag --> </body> </html> <!-- Performance optimized by W3 Total Cache. Learn more: https://www.w3-edge.com/products/ Page Caching using disk: enhanced Served from: greattodaynews.com @ 2017-11-24 18:27:34 by W3 Total Cache -->