Announcement

Collapse
No announcement yet.

Kubuntu fails to give an out of memory warning

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Kubuntu fails to give an out of memory warning


    As I found out via my struggle here http://kubuntuforums.net/forums/inde...opic=3085948.0

    Kubuntu doesn't give any warning when you are about to use more harddisk space than possible.

    A nice Alert like "Warning: 99% of harddiskspace is used"

    would surely add to the usability and accessibility of Linux...


    Is there any method to get those warnings (are these already built in yet I failed to "check" the option)?

    #2
    Re: Kubuntu fails to give an out of memory warning

    KDiskFree will do it.

    Comment


      #3
      Re: Kubuntu fails to give an out of memory warning

      If you right-click on your desktop, choose "Configure Desktop > Behavior" and click the "Device Icons" tab, the twelfth box down "Mounted Hard Disk Volume" is not checked by default, but if you check it, your hard disk partitions will show on the desktop, and you can keep track of how full they're getting.

      Comment


        #4
        Re: Kubuntu fails to give an out of memory warning

        Is there any method to get those warnings (are these already built in yet I failed to "check" the option)?
        Googling - i didn't find "disk usage probe" on K/X/Ubuntu (working background and giving warnings). But it should be easy to make.


        From: Day-to-day disk space management on Unix and Linux systems
        Part II of Managing disk space on Unix and Linux systems.
        http://www.techworld.com/storage/fea...amecatsamechan
        Typically one would run df regularly (at least once an hour, using cron) on each file system to provide an early warning if disk space is getting low.
        and
        Which raises the question of how full is full? Clearly once a disk is 100 per cent full it’s already too late, but at what level should the alarm bells start ringing? Generally a good rule of thumb for all resources (memory, CPU cycles, I/O capacity or whatever) is that if it’s in use more than 75 per cent of the time it’s a potential bottleneck. The same rule holds true for disks; if a disk is permanently more than 75 per cent full it’s probably time to think about upgrading it or moving some of the users elsewhere, or something.
        So - short script that gives warning when partition is 75% full:
        Code:
        #!/bin/sh
        
        if df -h | sort -rnk 5 | head -1 | grep "\(7[5-9]\|8[0-9]\|9[0-9]\|100\)%" > /dev/null ; then 
          DISPLAY=:0 dcop knotify default notify eventname appname "$(df)" '' '' 2 0
        fi
        What this does ?
        - Checks disk space with df
        df - report file system disk space usage
        - Opens small window (using knotify) if disk usage is 75%...100% and shows disks usage.
        KNotify, the notifications framework in KDE
        Scheduling is done with Kcron.
        KCron is an application for scheduling programs to run in the background. It is a graphical user interface to cron

        Same script with dzen:
        Code:
        #!/bin/sh
        
        if df -h | sort -rnk 5 | head -1 | grep "\(7[5-9]\|8[0-9]\|9[0-9]\|100\)%" > /dev/null ; then 
          df | DISPLAY=:0 dzen2 -l 20 -p -x 100 -y 300 -w 500 -fn fixed -bg black -fg red
        fi
        dzen - A general purpose messaging and notification program.
        Note - dzen isn't in the repositories.


        Links:
        Day-to-day disk space management on Unix and Linux systems
        Part II of Managing disk space on Unix and Linux systems.
        http://www.techworld.com/storage/fea...amecatsamechan

        Script to alert on high disk utilization
        http://bsdpants.blogspot.com/2007/06...high-disk.html

        Putting KNotify to work
        http://lukeplant.me.uk/articles.php?id=3

        dzen
        http://gotmor.googlepages.com/dzen

        Dzen: pop-up windows from the command-line
        http://www.linux.com/feature/116617

        DCOP and cron
        http://www.kde-forum.org/artikel/167...-and-cron.html



        Before you edit, BACKUP !

        Why there are dead links ?
        1. Thread: Please explain how to access old kubuntu forum posts
        2. Thread: Lost Information

        Comment

        Working...
        X