Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why don't I have a /dev/mcelog?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
manywele
l33t
l33t


Joined: 12 Jul 2003
Posts: 743
Location: Inside

PostPosted: Wed Dec 06, 2006 1:07 am    Post subject: Why don't I have a /dev/mcelog? Reply with quote

I have mce enabled in the kernel:
Code:
$ less /proc/config.gz | grep -i mce
CONFIG_X86_MCE=y
CONFIG_X86_MCE_NONFATAL=y
# CONFIG_X86_MCE_P4THERMAL is not set

and I'm using udev.

I'm getting MCE errors that I'd like to look up but, no /dev/mcelog:
Code:
bob@bob ~ $ ll /dev | grep -i mce
bob@bob ~ $


/proc/cpuinfo says:
Code:
 $ cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 10
model name      : AMD Athlon(tm) XP 2800+
stepping        : 0
cpu MHz         : 2082.866
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow up ts
bogomips        : 4170.53

What am I missing?


Last edited by manywele on Sat Dec 09, 2006 6:13 pm; edited 2 times in total
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Wed Dec 06, 2006 3:07 am    Post subject: Reply with quote

Code:
emerge app-admin/mcelog

_________________
Thomas S. Howard
Back to top
View user's profile Send private message
manywele
l33t
l33t


Joined: 12 Jul 2003
Posts: 743
Location: Inside

PostPosted: Wed Dec 06, 2006 3:16 am    Post subject: Reply with quote

Forgot to add that I already did that (it's how I figured out I needed it).
Back to top
View user's profile Send private message
manywele
l33t
l33t


Joined: 12 Jul 2003
Posts: 743
Location: Inside

PostPosted: Fri Dec 08, 2006 12:11 am    Post subject: Reply with quote

*bump*

I really don't know where to start looking. Anyone...?
Back to top
View user's profile Send private message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 718

PostPosted: Fri Dec 08, 2006 8:20 pm    Post subject: Reply with quote

manywele wrote:
*bump*

I really don't know where to start looking. Anyone...?


try
Code:
mcelog --generic

also
Code:
man mcelog


I beleive the logs will be stored at /var/log/mcelog
Back to top
View user's profile Send private message
manywele
l33t
l33t


Joined: 12 Jul 2003
Posts: 743
Location: Inside

PostPosted: Sat Dec 09, 2006 1:38 am    Post subject: Reply with quote

I have read the man page. I have googled. The problem that I can't resolve is that I don't have a /dev/mcelog. To be perfectly clear about it:
Code:
 # mcelog --generic
Cannot open /dev/mcelog

because /dev/mcelog doesn't exist. I don't know why it doesn't exist. I can't find anything about people doing something special to get one. As I stated above, I have mce enabled in the kernel. In fact googling for "cannot open /dev/mcelog" returns exactly two results, one of which is in French and the other is to a Suse mailing list with one response which suggests
Code:
mknod -m 0600 /dev/mcelog c 10 227

which is what the man page says it should be. Doing that gives me a /dev/mcelog but I still get a "Cannot open /dev/mcelog" error.
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Sat Dec 09, 2006 2:45 pm    Post subject: Reply with quote

On my machine /dev/mcelog has 660 permissions. I don't see how that makes much difference though. I'm also sending mcelog output to the syslog facility, instead of /var/log/mcelog.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 718

PostPosted: Sat Dec 09, 2006 3:16 pm    Post subject: Reply with quote

If I try to open mcelog as a normal user I get the same error message as you. You need to do it as root. Also is your system logger mine =syslog_ng running. If so, it should send the logs to /var/log/mcelog/. I just assumed this was the default for the gentoo install. The steps I followed to set it up where the same ones you used. However the /dev/mcelog was created for me by udev, also with 660 permissions.
Back to top
View user's profile Send private message
manywele
l33t
l33t


Joined: 12 Jul 2003
Posts: 743
Location: Inside

PostPosted: Sat Dec 09, 2006 4:06 pm    Post subject: Reply with quote

I am running as root (see the prompt above). My system logger is working just fine. Udev is not creating /dev/mcelog however. Even curiouser, it's happened on two of my boxen.

Athlon XP 2800+ running testing branch, 2.6.17-gentoo-r7, udev 103, not storing as tarball, no /dev/mcelog. Tried going all the way back down to udev-087-r1, restarting udev and rebooting. Still no /dev/mcelog.

Pentium III running stable branch, 2.6.16-gentoo-r9, mce enabled in the kernel, no /dev/mcelog.

Both boxen are synced and up to date including configs. The kernel is reporting non-fatal, correctable MCE events in /var/log/kernel and dmesg. Two different computers, one testing x86, one stable x86, different kernels, different udevs, same problem. Creating /dev/mcelog with mknod (0600 or 0660) gives me a character device that I still can not open, even as root with mcelog.

What have I missed?
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Sat Dec 09, 2006 4:17 pm    Post subject: Reply with quote

run:

uname -v
ls -l /usr/src/linux/arch/i386/boot/bzImage

and show us the output
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
manywele
l33t
l33t


Joined: 12 Jul 2003
Posts: 743
Location: Inside

PostPosted: Sat Dec 09, 2006 4:48 pm    Post subject: Reply with quote

Code:
bob@bob ~ $ uname -v
#2 Sat Sep 16 09:36:16 PDT 2006
bob@bob ~ $ ls -l /usr/src/linux/arch/i386/boot/bzImage
-rw-r--r-- 1 root root 2441416 Sep 16 09:36 /usr/src/linux/arch/i386/boot/bzImage
bob@bob ~ $
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Sat Dec 09, 2006 6:01 pm    Post subject: Reply with quote

im not sure why, but the driver which creates /dev/mcelog is only built on x86_64
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
manywele
l33t
l33t


Joined: 12 Jul 2003
Posts: 743
Location: Inside

PostPosted: Sat Dec 09, 2006 6:13 pm    Post subject: Reply with quote

Hmm. Must have changed relatively recently. My friend with a gentoo box which is sorely out of date maintanence-wise has a /dev/mcelog on x86.

Thanks for clearing that up.
Back to top
View user's profile Send private message
OldTango
l33t
l33t


Joined: 21 Feb 2004
Posts: 718

PostPosted: Sun Dec 10, 2006 12:03 am    Post subject: Reply with quote

dsd wrote:
im not sure why, but the driver which creates /dev/mcelog is only built on x86_64
Yes Thanks I learned something new. Maybe this helps explain why.......................... :) MCElog

I am curious if there is something similar for x86, or if mcelog can be made to work with x86.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum