Find the answer to your Linux question:
Results 1 to 2 of 2
Hi: We are running and getting some out of memory (OOM) crashes, however we don't have some systems connected to the console. Is there a way to redirect the kernel ...
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    22

    How to get OOM crash info into syslog or other log

    Hi:

    We are running and getting some out of memory (OOM) crashes, however we don't have some systems connected to the console.

    Is there a way to redirect the kernel dump to a file (preferably the syslog but any will do).

    We are already running klodg and syslogd but we don't find this dump there.

    Thanks.
    B

    =================
    example of data we would like to log.
    =================

    jffs2_gcd_mtd11 invoked oom-killer: gfp_mask=0x201d2, order=0, oomkilladj=0
    syslogd invoked oom-killer: gfp_mask=0x200d2, order=0, oomkilladj=0
    Mem-info:
    DMA per-cpu:
    CPU 0: Hot: hi: 0, btch: 1 usd: 0 Cold: hi: 0, btch: 1 usd: 0
    Normal per-cpu:
    CPU 0: Hot: hi: 18, btch: 3 usd: 2 Cold: hi: 6, btch: 1 usd: 1
    Active:20294 inactive:4419 dirty:0 writeback:0 unstable:0 free:412 slab:3117 mapped:309 pagetables:139
    DMA free:744kB min:360kB low:448kB high:540kB active:17864kB inactive:0kB present:32512kB pages_scanned:0 all_unreclaimable? no
    lowmem_reserve[]: 0 95
    Normal free:908kB min:1080kB low:1348kB high:1620kB active:63320kB inactive:17676kB present:97536kB pages_scanned:122510 all_unreclaimable? s
    lowmem_reserve[]: 0 0
    DMA: 2*4kB 0*8kB 0*16kB 1*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 744kB
    Normal: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 1*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 896kB
    Swap cache: add 0, delete 0, find 0/0, race 0+0
    Mem-info:
    DMA per-cpu:

  2. #2
    Just Joined!
    Join Date
    Apr 2008
    Posts
    35
    Hey There,

    You may be able to augment your syslog file to include a line that dumps everything to /dev/console. The most extreme would be:

    *.* /dev/console

    With a tab between the *.* and /dev/console. Your system may not have this logical device set up under /dev, but if you let me know what kind of system you have, I can find out for you. Of course, if you already know where that is, this solution should help.

    Please let me know if it doesn't work.

    Best wishes

    , Mike

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...