Sign in to follow this  
jominer247

Removing intel_idle on Linux CentOS for increased performance.

Recommended Posts

First of all - I take back what I said about Windows being better then Linux, Linux is far better then windows in every way i've currently noticed ^.^

 

CentOS is a fantastic OS to use with minecraft servers thanks to its low resource usage. For me it's one of the fastest OSs I have ever used. CentOS stands for Community Enterprise Operating System (C.ent.OS)

 

Sometimes however, around 30-50 players, I was experiencing short bursts of lag that took my server down to about 19.66666/19.696968 TPS etc. At one point even down to 18.3, Don't get me wrong, but im a complete performance hog and I hate even the slightest tinge of lag, for me my server has to sit on 20.0 TPS or I go crazy and start eating my fingers off on my keyboard looking for more ways to optimize CentOS to reduce lag even further.

 

I know, from speaking to plowmanplow, that to gain performance in one area, you have to lose performance in another, which is true. Also, from the saying "if it aint broke, dont fix it" comes to mind, but lets say i've ruined multiple OSs on my dedi and had to reinstall the OSs multiple times in order for me to get things working. Infact just now I almost screwed over grub in my CentOS, but managed to fix it with a rescue system.

 

First of all, I reccomend giving your server more permgen space using the flags -XX:PermSize=XXXM -XX:MaxPermSize=XXXM (example: -XX:PermSize=128M) Deatrix runs off 1GB of permsize, but thats to reduce the GC spikes that come from the garbage collector itself.

 

Now, To the part of disabling intel_idle on your processor, do the follow:

 

To tell if intel_idle driver is enabled, telnet/SSH into your CentOS server and run the following command:

cat /sys/devices/system/cpu/cpuidle/current_driver

If intel_idle is enabled, you will see Intel_idle show up on the line directly underneath the command you just entered.

 

Now:

If your grub.conf is located in /boot/grub/grub.conf (It was for me) then run the following command:

nano /boot/grub/grub.conf

Now, you should see something similar to this

:6536e72afdda85f19dfb69bcd0f99f79.png

 

DO NOT CONTINUE PAST THIS STAGE IF YOU DO NOT KNOW WHAT YOU ARE DOING, MISCONFIGURING THE GRUB.CONF CAN LEAD TO YOUR SYSTEM BEING RENDERED UN-USABLE. (This can be easily fixed on a machine your holding, but for a remote server it means a complete OS reinstall)

 

Now.

After "ro" leave a space and enter the following:

intel_idle.max_cstate=0 processor.max_cstate=0 idle=poll

now, save and exit the grub.conf.

 

Restart your dedicated server or machine to see if this has worked, if you have done it right, then you should see the following:

909e9181592593bbcf84952fde93c020.png

 

If you have not done it right, and intel_idle is still there, please refer to this post:

http://stackoverflow.com/questions/12111954/context-switches-much-slower-in-new-linux-kernels

 

If your system is not booting, you may have to reinstall your OS.

 

TERMS

I TAKE NO RESPONSIBILITY FOR DAMAGE TO SYSTEMS, INCORRECT CONFIGURATIONS OR ANY MISLEADING (There shouldnt be, but even if there is) CONTENT. WHAT YOU DO WITH THIS IS YOUR OWN RESPONSIBILITY.

 

 

Background.

Intel_idle is a driver which forces your processor into sleep/idle mode causing major performance issues, After doing this to my server, it reduced lag 10 fold.

 

Another thing which can help you increase performance is the use of -XX:+UseNUMA, 32bit systems should see a 30% performance increase in there systems, while 64x will see a 40% performance increase.

 

Source(s):

http://stackoverflow.com/questions/12111954/context-switches-much-slower-in-new-linux-kernels

http://docs.oracle.com/javase/7/docs/technotes/guides/vm/performance-enhancements-7.html

plowmanplow

Edited by jominer247

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By NebelC0meback
      Hello people of the Technic community, I've had this problem for around 3 weeks now, and after countless hours of research i couldn't get it to work.
      I've got the following problem:
      I've been using Ubuntu (PoPOS) for around 2 months now, and i got really familiar with it. I got minecraft from the repositories no problem whatsoever. But as i wanted to play with mods, My old friend Technic Launcher came to my mind again, so i tried to install it and play some modpacks.
      Problem:
      I've installed the correct java version (OpenJDK 8 ) and put the techniclauncher.jar as an executable. Now when i run the launcher, the installation screen pops up, everything normal. Now when i install it as a portable or just normally, it creates the directory and the installer dissapears. Everything ok until now: When i try to launch Technic again, it just crashes. The java process is running, but starts dissapearing. So i tried again with oracle Java 11. Same problem. It just crashes. When i launch it over Terminal, it gives me this:
       
      [email protected]:/home/muenzlpsaveyourinternet# java -jar '/home/directory/TechnicLauncher.jar' '/home/directory/TechnicLauncher.jar'
      Settings for exe: /home/directory/TechnicLauncher.jar
      Portable settings dir: /home/directory/technic
      Setting up logging
      And nothing else happens, the terminal doesnt continue launching, same with launching without terminal.Nothing opens , just the process i can see in my system manager
      I tried and tried, i uninstalled the runtimes, 8 and 11, tried and tried but nothing worked. I found no answer, now after 2 weeks of trying, I decided to post this here to get some answers from nice people who like to help in the community.
      If you like to help me, just post solutions or suggestions in the section down, please stay simple with ubuntu stuff since i am really new to linux and just getting started. Thanks for any response.
      (replaced my install directory with directory because its pretty much useless for help and might confuse people)
       
    • By Zilacon
      Website: http://apocgaming.org | Server IP: TC.APOCGAMING.ORG | Discord: https://discord.gg/uctbDQb
      Tekkit Classic requires you to download the Sounds/Music separately as Mojang has shutdown the resource servers for older minecraft versions.
      Download Resources: http://apocgaming.net/repo/files/147_152_Resources.zip
      This works for all MC versions from 1.2.5 to 1.5.2. Unzip this into your .technic/modpacks/modpack_name/resources folder.
      For more information on our servers, network, status, wiki's, launchers, pack pages, and more checkout our server page here:
      http://apocgaming.org/servers
      AGN is a community of gamers for minecraft and other online games founded in 1999 for gaming and setup in 2010 for minecraft servers.
      We host independently from Zilacon's own privately hosted dedicated servers.
      (Bungeecord, Vanilla, & Tekkit Classic are on a paid host. All others are hosted by Zilacon)
      I pride myself in hosting and managing high performance servers with virtually zero down time. All of our servers have deadlock, lag, and crash detection.
      Automated restart scripts, entity clearing/merging, spawn limits, timing adjustments, etc. To make the server run as smooth as possible.
      Our servers normally maintain 19-20 TPS no matter what. If you experience any type of lag with a good ping to the network, please contact us so we can look into it.
      Me and my staff team are available almost 24/7 on our discord server.
      On APOC we have many gameplay styles for you to choose from, along with over a dozen modpacks and servers to play on.
      All of our servers (excluding skyblock modpacks) have all of the features below.
      Server Features:
      Always Online: Dedicated, optimized, built for performance servers since 2010. Our servers are fully automated with almost zero need for human intervention to remain online and running smooth. Multiworld: We have worlds for PVP and PVE. These worlds are Survival (PVE/GriefPrevention Protection), Factions (PVP/Factions Protection), and Towny (PVP/Towny Protection). PVP worlds allow griefing and raiding by following the rules within the factions and towny plugins for war. Survival is PVE only and uses GriefPrevention for its protections. Custom Economy (APOC-Payday): Our economy is like no other, with one giant plugin (APOC-Payday) this plugin offers rewards for over 30 gameplay activities from killing mobs/players to crafting items. It also rewards you for voting with keys/kits to redeem for items and economy/exp/claimblocks. Our plugin also handles sign shops, player plots, automatic ranking, online/login rewards, and much more. Admin & Player Shops: We provide basic vanilla items in the spawn tower for admin shops. And we leave the modded side for players to buy a plot in spawn, create a shop, and select their items and prices for their shop. We encourage a competitive player market on APOC. Our admin shops will not interfere with selling modded items. Custom /help Commands: We have a custom menu of /help commands that explain everything on apoc. How to use our economy, claim systems, worlds, voting, shops, teleportation and homes, and much more. If these help commands cannot answer your questions, staff are available on the servers or on discord. MCMMO & APOC-RPG: All of our servers come equipped with MCMMO and APOC-RPG which adds skills, bonus drops for actions, custom enchanted item drops from mobs, and randomly placed chests or structures with loot inside in the worlds. Bungeecord: Our custom bungeecord server allows clients of any version to connect to our network & servers. Once connected to the server of your choice, you can communicate with everyone from every server, and see everyone who is online in the tab list from all servers. Looking for Staff:
      We are seeking active staff members for all servers on apoc. If you are interested in any position please apply on the links below. We are looking for java developers and server staff. Apply for Chat Mod: http://apocgaming.org/cmodapp Apply for Server Mod: http://apocgaming.org/smodapp Apply for Developer: http://apocgaming.org/devapp Voting & Reviewing Rewards:
      Voting for our network on one of the 36 vote sites listed on our /vote command in game or on our site at http://apocgaming.org/vote will give you 1 Common Key and 1 VoteKey. Common keys are one of 4 types of item reward keys issued on the servers. These keys can be earned by voting, being online, or logging in daily. When redeemed they will give you one item out of a long list of possible rewards. The higher grade the key is the better the rewards. Redeeming keys like Common have a chance to upgrade to Uncommon, and Uncommon to Rare, etc. Vote Keys are issued only for voting for sites, they give 1 EXP Level, $100 Economy, and 10 Claimblocks. We also reward for reviewing our network/servers on vote sites and forums like this (technic). If you enjoy our servers, please write us a review by replying to this topic for $2500 Economy and 3 Rare keys as a reward. If you got any suggestions or ideas for improvement, we are open to change. Just let us know!
    • By croonack
      I have tried many different ways to try and get the classic pack to start working, but it always gets stuck at 3/7 loading assets then crashes.
      Here's my crash code: https://paste.dimdev.org/axijipabub.mccrash
      Any help would be very appreciated
      Thank you
    • By SirValecekLuis
      Hi, unfortunately, I have the problem that when I start the tekkit classic I only load 3 modes but no mods from modpack. Reinstalled the whole launcher, deleted the .technic folder, reinstalled the whole mc, tried other versions, got the latest version of the java 8, 64 bit .. I do not know what it might be like, I tried searching the internet but nowhere I found nothing somebody was asking me to pretend, so I'm sorry I did not find it.
    • By mariossi255
      Hi, a friend of mine wanted to make a server where him and his followers could kill some time with both premium and sp clients.
      Sometimes this comes up when trying to launch the mod (with the sp launcher), and it usually 'fixes' itself by restarting it a couple of times.
       
       
       
       
      But when they manage to get past that and connect to the server, they can be seen by others but this covers their game window