Accelerate Your JBoss Enterprise Middleware - Red Hat Summit
Accelerate Your JBoss Enterprise Middleware - Red Hat Summit Accelerate Your JBoss Enterprise Middleware - Red Hat Summit
Accelerate Your JBoss Enterprise Middleware –Java Virtual MachineJavaJavaVirtualVirtualMachineMachine●The Sun JVM, as well as OpenJDK, requires the following option, passedon the command-line, to use large pages:● -XX:+UseLargePages● There is also something in Linux called “Transparent huge pages”.● Transparent huge pages allows the operating system (Linux) toevaluate memory usage of processes and dynamically move fromregular pages to large pages (consolidates many 4k pages into a largepage).● For some workloads this may be sufficient. For other, the staticconfiguration, and usage will be better.● If you have transparent huge pages turned on in the Linux kernel, youshould not specify the JVM argument to use large pages. Only if youopt for the static configuration, which I'll walk through next.● From my testing so far, I would not recommend having bothstatically defined large pages, and transparent huge page support onat the same time!●To turn off transparent huge pages, you can set a boot parameterin grub.conf as follows:
Accelerate Your JBoss Enterprise Middleware –Java Virtual MachineJavaJavaVirtualVirtualMachineMachine●To turn off transparent huge pages, you can set a boot parameter ingrub.conf as follows:title Red Hat Enterprise Linux (2.6.32-220.el6.x86_64)root (hd0,0)kernel /vmlinuz-2.6.32-220.el6.x86_64 ro root=UUID=f8196a3a-1f1a-47f3-9141-1d33e3da4454rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgbcrashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM transparent_hugepage=neverinitrd /initramfs-2.6.32-220.el6.x86_64.img
- Page 16 and 17: Accelerate Your JBoss Enterprise Mi
- Page 18 and 19: Accelerate Your JBoss Enterprise Mi
- Page 20 and 21: Accelerate Your JBoss Enterprise Mi
- Page 22 and 23: Accelerate Your JBoss Enterprise Mi
- Page 24 and 25: Accelerate Your JBoss Enterprise Mi
- Page 26 and 27: Accelerate Your JBoss Enterprise Mi
- Page 28 and 29: Accelerate Your JBoss Enterprise Mi
- Page 30 and 31: Accelerate Your JBoss Enterprise Mi
- Page 32 and 33: Accelerate Your JBoss Enterprise Mi
- Page 34 and 35: Accelerate Your JBoss Enterprise Mi
- Page 36 and 37: Accelerate Your JBoss Enterprise Mi
- Page 38 and 39: Accelerate Your JBoss Enterprise Mi
- Page 40 and 41: Accelerate Your JBoss Enterprise Mi
- Page 42 and 43: Accelerate Your JBoss Enterprise Mi
- Page 44 and 45: Accelerate Your JBoss Enterprise Mi
- Page 46 and 47: Accelerate Your JBoss Enterprise Mi
- Page 48 and 49: ManagementManagementAccelerate Your
- Page 50 and 51: Accelerate Your JBoss Enterprise Mi
- Page 52 and 53: Accelerate Your JBoss Enterprise Mi
- Page 54 and 55: Accelerate Your JBoss Enterprise Mi
- Page 56 and 57: Accelerate Your JBoss Enterprise Mi
- Page 58 and 59: Accelerate Your JBoss Enterprise Mi
- Page 60 and 61: Accelerate Your JBoss Enterprise Mi
- Page 62 and 63: Accelerate Your JBoss Enterprise Mi
- Page 64 and 65: Accelerate Your JBoss Enterprise Mi
- Page 68 and 69: Accelerate Your JBoss Enterprise Mi
- Page 70 and 71: Accelerate Your JBoss Enterprise Mi
- Page 72 and 73: Accelerate Your JBoss Enterprise Mi
- Page 74 and 75: Accelerate Your JBoss Enterprise Mi
- Page 76 and 77: Accelerate Your JBoss Enterprise Mi
- Page 78 and 79: Accelerate Your JBoss Enterprise Mi
- Page 80: References● This presentation has
<strong>Accelerate</strong> <strong>Your</strong> <strong>JBoss</strong> <strong>Enterprise</strong> <strong>Middleware</strong> –Java Virtual MachineJavaJavaVirtualVirtualMachineMachine●The Sun JVM, as well as OpenJDK, requires the following option, passedon the command-line, to use large pages:● -XX:+UseLargePages● There is also something in Linux called “Transparent huge pages”.● Transparent huge pages allows the operating system (Linux) toevaluate memory usage of processes and dynamically move fromregular pages to large pages (consolidates many 4k pages into a largepage).● For some workloads this may be sufficient. For other, the staticconfiguration, and usage will be better.● If you have transparent huge pages turned on in the Linux kernel, youshould not specify the JVM argument to use large pages. Only if youopt for the static configuration, which I'll walk through next.● From my testing so far, I would not recommend having bothstatically defined large pages, and transparent huge page support onat the same time!●To turn off transparent huge pages, you can set a boot parameterin grub.conf as follows: