*BAD*gran_size issue

Issues related to hardware problems
Post Reply
itsawebdev
Posts: 2
Joined: 2015/04/29 14:14:02

*BAD*gran_size issue

Post by itsawebdev » 2015/04/29 14:39:34

I am having issues with my server. So what I have tried so far was replaced RAM (hosting provider suggested it was faulty RAM) and a BIOS update as well occurred to no avail. I am still getting this issue and their advice to me was to add a certain command in the GRUB because it was considered a system bug? Any suggestions on what to do? My apache server seems to crash intermittently and I was wondering if this could be linked to it? Also how does one grub-update before rebooting on CentOS?
The issue seems to be a bug of your system. The following workaround should help you to avoid it:
Edit the /etc/default/grub (if you are using CentOS, you have to edit the /etc/grub.conf instead) and after doing so, generate the grub config again.
-----------------%<-----------------
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset enable_mtrr_cleanup mtrr_spar_reg_nr=1
mtrr_gran-size=4M mtrr_chunk_size=128M"
-----------------%<-----------------

Afterwards you need to perform a "grub-update" and "reboot".

So the error message within the dmesg should not appear again.
If it's still occurring, you may try the following configuration:

-----------------%<-----------------
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset enable_mtrr_cleanup mtrr_spar_reg_nr=1
mtrr_gran-size=32M mtrr_chunk_size=128M"
-----------------%<-----------------
Does the code above actually fix the issue or just hides the message? Any help would be highly appreciated. Thanks.

My server details are below:
Operating System: CentOS Linux release 7.1.1503 (Core)
Kernel: 3.10.0-229.1.2.el7.x86_64
Memory: 32GB RAM

Messages.log

Code: Select all

Apr 29 15:45:58  kernel: gran_size: 64K 	chunk_size: 64K 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 64K 	chunk_size: 128K 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 64K 	chunk_size: 256K 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 64K 	chunk_size: 512K 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 64K 	chunk_size: 1M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 64K 	chunk_size: 2M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 64K 	chunk_size: 4M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 64K 	chunk_size: 8M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 64K 	chunk_size: 16M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: *BAD*gran_size: 64K 	chunk_size: 32M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: *BAD*gran_size: 64K 	chunk_size: 64M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: *BAD*gran_size: 64K 	chunk_size: 128M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 64K 	chunk_size: 256M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 64K 	chunk_size: 512M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 64K 	chunk_size: 1G 	num_reg: 10  	lose cover RAM: -512M
Apr 29 15:45:58  kernel: *BAD*gran_size: 64K 	chunk_size: 2G 	num_reg: 10  	lose cover RAM: -1536M
Apr 29 15:45:58  kernel: gran_size: 128K 	chunk_size: 128K 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 128K 	chunk_size: 256K 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 128K 	chunk_size: 512K 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 128K 	chunk_size: 1M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 128K 	chunk_size: 2M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 128K 	chunk_size: 4M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 128K 	chunk_size: 8M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 128K 	chunk_size: 16M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: *BAD*gran_size: 128K 	chunk_size: 32M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: *BAD*gran_size: 128K 	chunk_size: 64M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: *BAD*gran_size: 128K 	chunk_size: 128M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 128K 	chunk_size: 256M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 128K 	chunk_size: 512M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 128K 	chunk_size: 1G 	num_reg: 10  	lose cover RAM: -512M
Apr 29 15:45:58  kernel: *BAD*gran_size: 128K 	chunk_size: 2G 	num_reg: 10  	lose cover RAM: -1536M
Apr 29 15:45:58  kernel: gran_size: 256K 	chunk_size: 256K 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 256K 	chunk_size: 512K 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 256K 	chunk_size: 1M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 256K 	chunk_size: 2M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 256K 	chunk_size: 4M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 256K 	chunk_size: 8M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 256K 	chunk_size: 16M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: *BAD*gran_size: 256K 	chunk_size: 32M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: *BAD*gran_size: 256K 	chunk_size: 64M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: *BAD*gran_size: 256K 	chunk_size: 128M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 256K 	chunk_size: 256M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 256K 	chunk_size: 512M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 256K 	chunk_size: 1G 	num_reg: 10  	lose cover RAM: -512M
Apr 29 15:45:58  kernel: *BAD*gran_size: 256K 	chunk_size: 2G 	num_reg: 10  	lose cover RAM: -1536M
Apr 29 15:45:58  kernel: gran_size: 512K 	chunk_size: 512K 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 512K 	chunk_size: 1M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 512K 	chunk_size: 2M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 512K 	chunk_size: 4M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 512K 	chunk_size: 8M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 512K 	chunk_size: 16M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: *BAD*gran_size: 512K 	chunk_size: 32M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: *BAD*gran_size: 512K 	chunk_size: 64M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: *BAD*gran_size: 512K 	chunk_size: 128M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 512K 	chunk_size: 256M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 512K 	chunk_size: 512M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 512K 	chunk_size: 1G 	num_reg: 10  	lose cover RAM: -512M
Apr 29 15:45:58  kernel: *BAD*gran_size: 512K 	chunk_size: 2G 	num_reg: 10  	lose cover RAM: -1536M
Apr 29 15:45:58  kernel: gran_size: 1M 	chunk_size: 1M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 1M 	chunk_size: 2M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 1M 	chunk_size: 4M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 1M 	chunk_size: 8M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 1M 	chunk_size: 16M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: *BAD*gran_size: 1M 	chunk_size: 32M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: *BAD*gran_size: 1M 	chunk_size: 64M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: *BAD*gran_size: 1M 	chunk_size: 128M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 1M 	chunk_size: 256M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 1M 	chunk_size: 512M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 1M 	chunk_size: 1G 	num_reg: 10  	lose cover RAM: -512M
Apr 29 15:45:58  kernel: *BAD*gran_size: 1M 	chunk_size: 2G 	num_reg: 10  	lose cover RAM: -1536M
Apr 29 15:45:58  kernel: gran_size: 2M 	chunk_size: 2M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 2M 	chunk_size: 4M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 2M 	chunk_size: 8M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 2M 	chunk_size: 16M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: *BAD*gran_size: 2M 	chunk_size: 32M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: *BAD*gran_size: 2M 	chunk_size: 64M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: *BAD*gran_size: 2M 	chunk_size: 128M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 2M 	chunk_size: 256M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 2M 	chunk_size: 512M 	num_reg: 10  	lose cover RAM: -16M
Apr 29 15:45:58  kernel: *BAD*gran_size: 2M 	chunk_size: 1G 	num_reg: 10  	lose cover RAM: -512M
Apr 29 15:45:58  kernel: *BAD*gran_size: 2M 	chunk_size: 2G 	num_reg: 10  	lose cover RAM: -1536M
Apr 29 15:45:58  kernel: gran_size: 4M 	chunk_size: 4M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 4M 	chunk_size: 8M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 4M 	chunk_size: 16M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: *BAD*gran_size: 4M 	chunk_size: 32M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: *BAD*gran_size: 4M 	chunk_size: 64M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: *BAD*gran_size: 4M 	chunk_size: 128M 	num_reg: 10  	lose cover RAM: -14M
Apr 29 15:45:58  kernel: *BAD*gran_size: 4M 	chunk_size: 256M 	num_reg: 10  	lose cover RAM: -14M
Apr 29 15:45:58  kernel: *BAD*gran_size: 4M 	chunk_size: 512M 	num_reg: 10  	lose cover RAM: -14M
Apr 29 15:45:58  kernel: *BAD*gran_size: 4M 	chunk_size: 1G 	num_reg: 10  	lose cover RAM: -510M
Apr 29 15:45:58  kernel: *BAD*gran_size: 4M 	chunk_size: 2G 	num_reg: 10  	lose cover RAM: -1534M
Apr 29 15:45:58  kernel: gran_size: 8M 	chunk_size: 8M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 8M 	chunk_size: 16M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: *BAD*gran_size: 8M 	chunk_size: 32M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: *BAD*gran_size: 8M 	chunk_size: 64M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: *BAD*gran_size: 8M 	chunk_size: 128M 	num_reg: 10  	lose cover RAM: -10M
Apr 29 15:45:58  kernel: *BAD*gran_size: 8M 	chunk_size: 256M 	num_reg: 10  	lose cover RAM: -10M
Apr 29 15:45:58  kernel: *BAD*gran_size: 8M 	chunk_size: 512M 	num_reg: 10  	lose cover RAM: -10M
Apr 29 15:45:58  kernel: *BAD*gran_size: 8M 	chunk_size: 1G 	num_reg: 10  	lose cover RAM: -506M
Apr 29 15:45:58  kernel: *BAD*gran_size: 8M 	chunk_size: 2G 	num_reg: 10  	lose cover RAM: -1530M
Apr 29 15:45:58  kernel: gran_size: 16M 	chunk_size: 16M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: gran_size: 16M 	chunk_size: 32M 	num_reg: 10  	lose cover RAM: 238M
Apr 29 15:45:58  kernel: *BAD*gran_size: 16M 	chunk_size: 64M 	num_reg: 10  	lose cover RAM: -18M
Apr 29 15:45:58  kernel: gran_size: 16M 	chunk_size: 128M 	num_reg: 10  	lose cover RAM: 14M
Apr 29 15:45:58  kernel: gran_size: 16M 	chunk_size: 256M 	num_reg: 10  	lose cover RAM: 14M
Apr 29 15:45:58  kernel: gran_size: 16M 	chunk_size: 512M 	num_reg: 10  	lose cover RAM: 14M
Apr 29 15:45:58  kernel: gran_size: 16M 	chunk_size: 1G 	num_reg: 10  	lose cover RAM: 14M
Apr 29 15:45:58  kernel: *BAD*gran_size: 16M 	chunk_size: 2G 	num_reg: 10  	lose cover RAM: -1010M
Apr 29 15:45:58  kernel: gran_size: 32M 	chunk_size: 32M 	num_reg: 10  	lose cover RAM: 126M
Apr 29 15:45:58  kernel: *BAD*gran_size: 32M 	chunk_size: 64M 	num_reg: 10  	lose cover RAM: -2M
Apr 29 15:45:58  kernel: gran_size: 32M 	chunk_size: 128M 	num_reg: 10  	lose cover RAM: 30M
Apr 29 15:45:58  kernel: gran_size: 32M 	chunk_size: 256M 	num_reg: 10  	lose cover RAM: 30M
Apr 29 15:45:58  kernel: gran_size: 32M 	chunk_size: 512M 	num_reg: 10  	lose cover RAM: 30M
Apr 29 15:45:58  kernel: gran_size: 32M 	chunk_size: 1G 	num_reg: 10  	lose cover RAM: 30M
Apr 29 15:45:58  kernel: *BAD*gran_size: 32M 	chunk_size: 2G 	num_reg: 10  	lose cover RAM: -994M
Apr 29 15:45:58  kernel: gran_size: 64M 	chunk_size: 64M 	num_reg: 10  	lose cover RAM: 94M
Apr 29 15:45:58  kernel: gran_size: 64M 	chunk_size: 128M 	num_reg: 9  	lose cover RAM: 94M
Apr 29 15:45:58  kernel: gran_size: 64M 	chunk_size: 256M 	num_reg: 9  	lose cover RAM: 94M
Apr 29 15:45:58  kernel: gran_size: 64M 	chunk_size: 512M 	num_reg: 9  	lose cover RAM: 94M
Apr 29 15:45:58  kernel: gran_size: 64M 	chunk_size: 1G 	num_reg: 9  	lose cover RAM: 94M
Apr 29 15:45:58  kernel: gran_size: 64M 	chunk_size: 2G 	num_reg: 10  	lose cover RAM: 94M
Apr 29 15:45:58  kernel: gran_size: 128M 	chunk_size: 128M 	num_reg: 9  	lose cover RAM: 158M
Apr 29 15:45:58  kernel: gran_size: 128M 	chunk_size: 256M 	num_reg: 9  	lose cover RAM: 158M
Apr 29 15:45:58  kernel: gran_size: 128M 	chunk_size: 512M 	num_reg: 9  	lose cover RAM: 158M
Apr 29 15:45:58  kernel: gran_size: 128M 	chunk_size: 1G 	num_reg: 9  	lose cover RAM: 158M
Apr 29 15:45:58  kernel: gran_size: 128M 	chunk_size: 2G 	num_reg: 10  	lose cover RAM: 158M
Apr 29 15:45:58  kernel: gran_size: 256M 	chunk_size: 256M 	num_reg: 7  	lose cover RAM: 414M
Apr 29 15:45:58  kernel: gran_size: 256M 	chunk_size: 512M 	num_reg: 9  	lose cover RAM: 414M
Apr 29 15:45:58  kernel: gran_size: 256M 	chunk_size: 1G 	num_reg: 9  	lose cover RAM: 414M
Apr 29 15:45:58  kernel: gran_size: 256M 	chunk_size: 2G 	num_reg: 10  	lose cover RAM: 414M
Apr 29 15:45:58  kernel: gran_size: 512M 	chunk_size: 512M 	num_reg: 5  	lose cover RAM: 926M
Apr 29 15:45:58  kernel: gran_size: 512M 	chunk_size: 1G 	num_reg: 5  	lose cover RAM: 926M
Apr 29 15:45:58  kernel: gran_size: 512M 	chunk_size: 2G 	num_reg: 5  	lose cover RAM: 926M
Apr 29 15:45:58  kernel: gran_size: 1G 	chunk_size: 1G 	num_reg: 5  	lose cover RAM: 926M
Apr 29 15:45:58  kernel: gran_size: 1G 	chunk_size: 2G 	num_reg: 5  	lose cover RAM: 926M
Apr 29 15:45:58  kernel: gran_size: 2G 	chunk_size: 2G 	num_reg: 4  	lose cover RAM: 1950M
Apr 29 15:45:58  kernel: mtrr_cleanup: can not find optimal value
Apr 29 15:45:58  kernel: please specify mtrr_gran_size/mtrr_chunk_size

User avatar
TrevorH
Forum Moderator
Posts: 29160
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: *BAD*gran_size issue

Post by TrevorH » 2015/04/29 17:00:31

I don't think those messages have anything to do with your problem. I've had similar messages in my workstation dmesg output for more than a year and I don't see any problems. I think you need to look at the apache crashes in more detail and find out if they have a specific cause.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

itsawebdev
Posts: 2
Joined: 2015/04/29 14:14:02

Re: *BAD*gran_size issue

Post by itsawebdev » 2015/04/29 18:04:02

TrevorH wrote:I don't think those messages have anything to do with your problem. I've had similar messages in my workstation dmesg output for more than a year and I don't see any problems. I think you need to look at the apache crashes in more detail and find out if they have a specific cause.
You might be on to something. I took the trouble to transfer my web files to another server (thinking it was hardware issue) and noticed Apache seems to hang for a certain PHP script. Trying to pinpoint exactly what it is.

Post Reply

Return to “CentOS 7 - Hardware Support”