Multicore Support?

Discussion in 'Bukkit Discussion' started by Eminam, Oct 19, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Eminam

    My question is..... when in fact will notch put in multicore support. So that the server doesn't run off of one core. IF THERE IS IN FACT A WAY TO RUN A SERVER ON MULTIPLE CORES, please someone tell me I'd love to know.
     
  2. Offline

    matter123

    wrong section please move this to a more appropriate section such as minecraft help or minecraft discussion
     
  3. Offline

    Daniel Heppner

    Why do you think we're actually going to know when this will happen? I doubt it will happen anyway. It would require a LOT of code to be rewritten, if it's possible at all with Java.
     
  4. Offline

    matter123

    though dont threads use another core if possible for their stack?
     
  5. Offline

    Daniel Heppner

    Minecraft is already multithreaded (I think). Not sure about that. It could work differently in Java than other programming languages that run on the machine rather than a VM.
     
  6. Offline

    matter123

    so to answer @Eminam question then it depends on your particular architecture OS and JVM
     
  7. Offline

    Kaikz

    Yep, BukkitDev needs multicore support.
     
    Daniel Heppner and matter123 like this.
  8. Offline

    Daniel Heppner

    I thought the same thing. Although I still can't figure out how to download it. I don't see a download button for downloading BukkitDev. (is it available in 64 bit?)
     
  9. Offline

    ZachBora

    If you hold down Alt+F13 the button appears in the bottom left corner near the Curse logo.
     
  10. Offline

    Daniel Heppner

    That just closed my tab...
    WAIT: I did it in Minecraft and it worked! Thanks!
     
  11. Offline

    ZachBora

    I just quickly googled and there's apparently this package to do stuff but I don't understand it :S
    java.util.concurrent

    This is a nice article : http://www.vogella.de/articles/JavaConcurrency/article.html
     
  12. Offline

    rileysut8991

    You do know that Minecraft was first designed to be a web-browser.
    Notch doesn't know where he messed up.
    (explains the lag)
    Its not multithreded
     
  13. Offline

    Daniel Heppner

    Looks to be more about multi-threads rather than multi-cores. I have to do homework- I'll check it out in a bit.
     
  14. Offline

    ZachBora

    :confused:
    surely you mean a web application, not a browser.
     
  15. Offline

    rileysut8991

    i stick chippy up my bum bum
     
  16. Offline

    Daniel Heppner

    We're joking around in Skype, and he made a funny joke.
    Leave it alone or he'll come back and say things like:
     
  17. Offline

    rileysut8991

    :D

    In conclusion, I have no idea if bukkit has multicore support.
    As far as i know it wouldn't be the coding in bukkit that would make the difference if it runs on one core or more. The way to run it on multiple would be to change the settings of java itself. (even though it think it already uses multiple cores.)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  18. Offline

    Daniel Heppner

    Be careful, the moderators give out easy infractions for doing things like this.
    noap. It would be the code. ;)
     
  19. Offline

    matejdro

    AFAIK that is the same thing. Different threads runs on different cores.
     
  20. Offline

    jasvecht

    Errm, didn't Notch already add some form of Multi core support in 1.8?
     
  21. Offline

    matejdro

    Yes, for single player.

    But yeah, you damn lazy bukkit team. Add multicore to bukkitdev. What are you waiting for?
     
  22. Offline

    Lolmewn

    I think they don't get we need multi-core to have a website being displayed at all.
    I do have a work-around though. It seems multi-core gets enabled when you press Alt + F4, it worked here!
     
  23. This works only on IE 15, FireFox 55 or google chrome 252.0 :(
     
  24. Offline

    Eminam

    >.< geebuz I'm talking about a quad core dedicated server running multicore support for the game itself >.< lol
     
  25. Offline

    Vhab

    This thread makes my brain hurt.
    It's hard to tell the trolls from the people who are serious!

    brb, washing my brain with bleach.
     
  26. Offline

    Lolmewn

    Oh Shiii!
    Ah well, at least it works here =D

    And I see this thread got moved <3
     
  27. Offline

    mindless728

    Well if someone wanted to they could write an API plugin that others patch into that handles the events in a separate thread for each plugin, and to avoid the synchronization of setType on the blocks you could halt the server thread until all of them processed their events (which is what is currently happening anyways)
     
  28. Offline

    LEOcab

    I see my server using up to 150% CPU at peak times. It used to be only 100-110% before I installed Orebfuscator which apparently runs in its own thread on a separate core. I'm guessing about 100% Bukkit, 40% Orebfuscator, and 10% other plugins that have small tasks assigned to a different core and Java garbage collector.
     
  29. Offline

    Vhab

    That won't really help if the large majority of the CPU time is consumed by the original mc server code itself on a single thread.
    It'll just be a lot of work to make Bukkit thread-safe for minimum gains.
     
  30. Offline

    LEOcab

    I'm sure they'd do it if they didn't have to redo everything every time a new Minecraft version comes out. I think that this is really backwards... Why doesn't Mojang let Bukkit take care of the server stuff? Vanilla server is only useful for setting up a quick server for your friends to play for a few hours. It's useless for anything larger than that. Why can't they work together? :(
     
Thread Status:
Not open for further replies.

Share This Page