Re: 100% / and swap usage



Jean-David Beyer wrote:
Unruh wrote:
Jean-David Beyer <jeandavid8@xxxxxxxxxxx> writes:

LinuxOS wrote:
Hi,

My Linux machine is getting out of disk usage, following is the df
command output. Kindly give suggestions on this.

[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 15G 14G 0 100% /
/dev/sda1 190M 8.6M 172M 5% /boot
none 252M 0 252M 0% /dev/shm
/dev/sda3 1012M 1012M 0 100% /swap
/dev/sda5 487M 11M 451M 3% /tmp

Regards

Something must be wrong. It is really unlikely that the root file
system

Look at his disk. His root is the whole file system. /tmp/and /boot
don't take up room.

I am not sure what you mean by that. /boot and /tmp _do_ take up
space. They seem a little large for what he is doing, but I imagine
they (especially /boot) are a little large for what he is doing.

He has both a memory leak (using up swap) and a memory used up.

As for /swap, perhaps he is using a swap file and if so, it is
probably already formatted for swap and appears to be totally used.
That would be normal, though I would never use a swap file myself,
but a swap partition. This, per se, _does not_ indicate a memory leak
or exhaustion of memory.

This won't report if swap is partially used, only that 100% of the /swap
partition is occupied. If it's occupied by a swap file, that would explain
it, although it would be a bit odd.



Go to /var/ and make yourself some room.

While I prefer a separate /var partition, it is not absolutely
necessary. Having one might help the O.P. diagnose the problem if, as
I suspect, he does not run the normal cron stuff that manages
temporary files and logs.

Then as he suggests do
du -s /*
and look to see where the memory is being used.

This ain't memory, it's disk.

He should be able to do this right now.

Another possibility is that he installed _everything_ that comes with
his distribution instead of just the subset he needs.
Yee gads you have separate /usr, /usr/local, /home. He does not. If
you add yours up you get 7 GB used. (2.2G in /var? That is nuts!)

Well under 15G, don't you think?

Does that not depend on what I am doing?

Amen. A bit of web caching, a few MP3's and a few bittorrented CD images and
you can easily fill 15 Gig.


.



Relevant Pages

  • Re: What are the benefits of Partitioning HDs and having a dedicated drive partiton for the Swap fil
    ... The problem is that the OS can only address 4GB of memory, regardless of where it is located. ... You could eliminate the swap file, forcing XP to utilize more memory. ... Therefore, if you have a partition that is not on the XP drive, and is not on the same cable as XP, it will improve speed. ... partitions on each of the 2 drives. ...
    (microsoft.public.windowsxp.hardware)
  • Re: XP Pro - Swap File Size for Modern Systems
    ... If you want full memory dumps for analyzing crashes, ... minimum size to at least be equal to the installed ram. ... the partition as well. ... > What is the optimal size for the swap file for Windows XP Pro. ...
    (microsoft.public.windowsxp.general)
  • Re: 4GB RAM
    ... the graphics program usually creates its own swap file. ... drives to be used as the first swap drive, ... disk to disk? ... from 75% to 80% of the first partition, ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Did we must put the mounted partition / and /boot in the same slice ?
    ... Do the install again but do not make /boot a partition. ... fraction of your disk and b) if you expand your memory in the future you ... You must have at least as much swap as physical ...
    (freebsd-questions)
  • Re: Insufficient Memory to Save Webpage (corrections)
    ... I'm unable to save to any partition on Disk 0. ... What kind of memory. ... Performance Advanced Option is for Programs and ...
    (microsoft.public.windowsxp.help_and_support)