LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 01-02-2012, 12:01 PM   #1
sonichedgehog
Member
 
Registered: Oct 2007
Location: London UK
Distribution: Fedora Core 17
Posts: 298

Rep: Reputation: 32
Use of logs to find unexpected corruption


The success story is the result of the detailed logs available in Linux.

The problem was actually trivial. Fstab had changed- I can't say how or why, but the fstab line relating to one of the possible swap partitions had been commented out- and the reference to the partition that was originally created for this purpose was missing altogether.

So my 512mB system was working well, until an application- typically a browser- pushed memory usage over this level.

Earlier in my Linux experience, I would have been tempted to try a fresh install. That would probably have worked- but then I would have needed to reinstall some of my applications with excursions into unstable repositories, which can be a time consuming adventure.

However, dmesg, kern.log and messages contained some thought-provoking lines, all of which either stated or pointed towards OOM errors or consequences thereof. It was a blurry picture, and early research suggested bugs that had been satisfied by kernel patches followed by updates. It was easy to install a new kernel- which, naturally, didn't touch the problem, but has resulted in smoother and cooler operation.

Finally, and after reading some material relating OOM to swapfile problems- and in which users were advised to make more memory available and not to try and tweak OOM settings- I moved on from the logs to use "top", "free" and, sensing a solution, "swapon". Finally, I added the required line to fstab and enabled it with swapon.

I hope that my future adventures in Linux will involve more lateral thinking- and that this experience and others like it will encourage all of us to make full use of the logs, and the wealth of material available to help interpret them.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
find -mtime gives unexpected results amchargue Linux - Newbie 3 08-12-2010 04:19 PM
Unexpected directory in path, cannot find source alanhr Linux - General 3 03-20-2009 05:39 AM
find command displays unexpected results helptonewbie Linux - Newbie 5 08-12-2008 02:25 AM
How can I find out the reason of unexpected reboot (redhat3+2.6.11)? yuzuohong Linux - General 2 05-24-2005 05:49 PM
Unexpected behaviour with the find command dazdaz Linux - General 3 12-15-2004 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration