I keep loosing memory ( free disk space not ram memory )

Asked by Peter T Butler

As i use computer remaining memory keeps getting less

Question information

Language:
English Edit question
Status:
Needs information
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
GREG T. (ubuntuer) said :
#1

what makes you think your memory is getting less ?
 example . i have 2 gb of ram, on the system monitor it shows 1.8 gb and this is because it is shared ram with my video . when i step up the visual effects to extra i will use 410 mb of the ram , drop the effects to none and i only use 215 mb of this ram . ram = memory the more you have running at one time the more memory/ram you will use . i have read statements online saying i have 4gb of ram installed but ubuntu only shows 2 gb .

Revision history for this message
GREG T. (ubuntuer) said :
#2

 just thought i would ask if you were talking about hdd size ?

Revision history for this message
Peter T Butler (pnbutler32) said :
#3

the reason i have said it is loosing memory is the following.
Some time ago my laptop kept crashing and had to keep doing reinstalls then I figured out what was happening I didn't have enough memory.
So i installed disk usage analyze so I could check how much memory i had it was the when i used the computer after a while I would have less and less available memory left and I didn't add any new programs other than updates sent by Ubuntu which took a little memory, I then installed Bleachbit
and now was able to get rid of temporary files and stuff stored in caches This has helped but it still does some loosing of memory but far less than it use to as i am able to clear out most of the stuff left in
I now have approx 630 mg left out of the 4g installed hope this should make more clear my problem
Thanks for the help,
Peter

Revision history for this message
GREG T. (ubuntuer) said :
#4

where did you get your install cd from? what version is it ?

Revision history for this message
arjun (arjunak01) said :
#5

open a terminal (applications > accessories > terminal ) and type "sudo apt-get clean"

Revision history for this message
arjun (arjunak01) said :
#6

open disk usage analyzer and click on scan filesystem and see which folder is using up the free space. If the folder is var then your problem will be solved by running apt-get clean.if the folder is home then you need to delete or move your movies and music files to another partition.

Revision history for this message
GREG T. (ubuntuer) said :
#7

 that is the first part of bleach bit sudo apt-get clean : sudo apt-get remove and can be done as root or user .

Revision history for this message
GREG T. (ubuntuer) said :
#8

So i installed disk usage analyze so I could check how much memory i had it was the when i used the computer after a while I would have less and less available memory left and I didn't add any new programs other than updates sent by Ubuntu which took a little memory, I then installed Bleachbit
and now was able to get rid of temporary files and stuff stored in caches This has helped but it still does some loosing of memory but far less than it use to as i am able to clear out most of the stuff left in.
   why did he have to install disk usage analyzer ? mine was pre installed . that is why i ask about his install cd , and version .

Revision history for this message
Peter T Butler (pnbutler32) said :
#9

I downloaded ubundo 10.4 to a disk then installed it from disk.

I have dawn sudo-apt clean several times and all is clean.

i do not have any movies or music installed

O have done sudo apt clean as root user and the regular way

Actually I didn't have to install disk usage analyzer I just made it available so I could use it.

Thanks for your help so far we seem to be on the same location.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#10

Please open a terminal and please copy and paste here the result of this command:

dpkg -l | grep -i linux-image

Thank you

Revision history for this message
GREG T. (ubuntuer) said :
#11

 right after doing a new install how much ram would be free ?

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#12

Please tell i think you refer the RAM as disk-space so i think you need to delete old installed kernels so please answer my request...

Please open a terminal and please copy and paste here the result of this command:

dpkg -l | grep -i linux-image

Thank you

Revision history for this message
Elmer Fudd (efuudd) said :
#13

Peter,
You are talking about tools and procedures to clean up hard disk space but then you said:

"I now have approx 630 mg left out of the 4g installed hope this should make more clear my problem
Thanks for the help,
Peter"

-which would indicate that you are concerned about decreasing amount of RAM (memory leak) , not disk space. Are you reading the 630meg from SytemMonitor? Does it stay the same after a reboot. Forgive me if I don't quite understand the issue.

Revision history for this message
GREG T. (ubuntuer) said :
#14

On 07/10/2010 05:39 PM, marcobra (Marco Braida) wrote:
> Question #117243 on Ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+question/117243
>
> marcobra (Marco Braida) requested for more information:
> Please tell i think you refer the RAM as disk-space so i think you need
> to delete old installed kernels so please answer my request...
>
> Please open a terminal and please copy and paste here the result of this
> command:
>
> dpkg -l | grep -i linux-image
>
> Thank you
>
>
  peter b. said he has 4 gb of ram installed it shows he is down to 630 mb

Revision history for this message
GREG T. (ubuntuer) said :
#15

marcobra , i read in a bug report about 3 weeks ago about memory leaks on some laptops . [ xorg server or firefox ]

Revision history for this message
Peter T Butler (pnbutler32) said :
#16

tried to cut and paste with no results for some reason
I can cut & paste into google ok but can't do it to the terminal
Tried putting it in by hand but can't seem to get it right as I am fairly new to all of this
thanks for the help

Revision history for this message
arjun (arjunak01) said :
#17

you can right click on a terminal and select paste. if you are talking about the output from the terminal then you can do this "dpkg -l | grep -i linux-image > ~/output.txt" now go to the home folder and you will find a file named output.txt

Revision history for this message
GREG T. (ubuntuer) said :
#18

left click hold and hi- lite this dpkg -l | grep -i linux-image . after you have it hi-lited right click it ,then in the list click copy . now go to the application -accessories- terminal ,click it to open. now after opens in the first line left click one time then right click, then click paste ,now press enter . this is what the output should look like .
i linux-image-2.6.32-23-generic 2.6.32-23.37 Linux kernel image for version 2.6.32 on x86
ii linux-image-generic 2.6.32.23.24 Generic Linux kernel image

Revision history for this message
Peter T Butler (pnbutler32) said :
#19

this is what I get when i go to terminal thanks for the help so far, Peter

peter@peter-laptop:~$ dpkg -l | grep -i linux-image
ii linux-image-2.6.32-21-generic 2.6.32-21.32 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-22-generic 2.6.32-22.36 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-23-generic 2.6.32-23.37 Linux kernel image for version 2.6.32 on x86
ii linux-image-generic 2.6.32.23.24 Generic Linux kernel image
peter@peter-laptop:~$

Revision history for this message
GREG T. (ubuntuer) said :
#20

good ! now go to system-administration-synaptic package manager , when it opens click the word search[ up at the top ] and enter 2.6.32-21 then click search ,when it finds it click the green box and select mark for complete removal then at the top click the green arrow to apply changes . then do the same with 2.6.32-22 . after finished restart the pc .

Revision history for this message
Peter T Butler (pnbutler32) said :
#21

there is a whole bunch of them with added items
do i do all of them or just one and if so which one

Revision history for this message
GREG T. (ubuntuer) said :
#22

if you click the word search then in the window that pops up paste in 3.6.32-21 then click search in that window it will narrow the search to what needs to be removed .
 then do the same with 2.6.32-22 .

Revision history for this message
Peter T Butler (pnbutler32) said :
#23

I recovered a lot more memory I now have 819.5 and before i had only 628.6 that looks like what i had when I first
started or close to it as I have 2 added programs that take a little of the memory
Thanks if I have any more problems I now know where all the smart guys or girls are
Peter

Revision history for this message
GREG T. (ubuntuer) said :
#24

now run bleachbit as root .run all .

Revision history for this message
Peter T Butler (pnbutler32) said :
#25

will do thanks again

Revision history for this message
Peter T Butler (pnbutler32) said :
#26

I just did a recent upgrade, and now the former problem has returned the same as it was
when we first started the two items are still cleared. and it was working OK till I did the recent upgrade
What do i do now

Revision history for this message
GREG T. (ubuntuer) said :
#27

open the terminal then copy and past this in
dpkg -l | grep -i linux-image
 then press enter , remember you will not your password press enter. and give us the read out .

Revision history for this message
Peter T Butler (pnbutler32) said :
#28

This is what I get, Peter

peter@peter-laptop:~$ dpkg -l | grep -i linux-image
rc linux-image-2.6.32-21-generic 2.6.32-21.32 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-23-generic 2.6.32-23.37 Linux kernel image for version 2.6.32 on x86
ii linux-image-generic 2.6.32.23.24 Generic Linux kernel image
peter@peter-laptop:~$

Revision history for this message
Peter T Butler (pnbutler32) said :
#29

This is what I get, Peter

peter@peter-laptop:~$ dpkg -l | grep -i linux-image
rc linux-image-2.6.32-21-generic 2.6.32-21.32 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-23-generic 2.6.32-23.37 Linux kernel image for version 2.6.32 on x86
ii linux-image-generic 2.6.32.23.24 Generic Linux kernel image
peter@peter-laptop:~$

Revision history for this message
GREG T. (ubuntuer) said :
#30

go to synaptic package manager do a search for 2.6.32-21 and remove them

Revision history for this message
Peter T Butler (pnbutler32) said :
#31

None of these are turned on they are all off
When you say remove them do all of the above or what and what I find is updated versions
I do not fully understand what i am to remove.
Peter

Revision history for this message
GREG T. (ubuntuer) said :
#32

On 07/21/2010 06:55 PM, Peter T Butler wrote:
> Question #117243 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/117243
>
> Status: Answered => Open
>
> Peter T Butler is still having a problem:
> None of these are turned on they are all off
> When you say remove them do all of the above or what and what I find is updated versions
> I do not fully understand what i am to remove.
> Peter
>
>
go to system -admin.- system monitor open it the first tab will tell you
about the system see how much it can see of installed memory .

Revision history for this message
Peter T Butler (pnbutler32) said :
#33

I start with this much memory ( used 2.5 g available 1 g )
as I use computer available keeps getting less such as ( used 2.5 available 889 m )
and the figures keep changing ttill the computer starts acting up
then I go to bleach and find the missing memory I clear it out, then I am almost
back to the original memory If I go to adm bleach I can get back to original memory

It was working OK till the next to the last upgrade

Revision history for this message
Peter T Butler (pnbutler32) said :
#34

boy do i have a mystery for you all

computer has decided to behave itself on its own accord why I do not know as it has stopped loosing memory it is now staying in a fixed position so it has fixed itself.

Revision history for this message
Peter T Butler (pnbutler32) said :
#35

I did another update now again I am loosing memory again can any tell
me how I can correct this problem it seems every time I do an update the problem
returns, this is becoming very frustrating

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#36

Please give us the result of this terminal command:

dpkg -l | grep -i linux-image

thank you

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#37

Please also send the result of this command:

free -m

Thank you

Revision history for this message
Peter T Butler (pnbutler32) said :
#38

how do you type in terminal

dpkg -1 ? grep -i linux-image

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#39

Select from this tread and copy then paste into terminal:

dpkg -l | grep -i linux-image

Thanks

Revision history for this message
Peter T Butler (pnbutler32) said :
#40

peter@peter-laptop:~$ dpkg -l | grep -i linux-image
rc linux-image-2.6.32-21-generic 2.6.32-21.32 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-23-generic 2.6.32-23.37 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-24-generic 2.6.32-24.38 Linux kernel image for version 2.6.32 on x86
ii linux-image-generic 2.6.32.24.25 Generic Linux kernel image
peter@peter-laptop:~$

Revision history for this message
Peter T Butler (pnbutler32) said :
#41

peter@peter-laptop:~$ dpkg -l | grep -i linux-image
rc linux-image-2.6.32-21-generic 2.6.32-21.32 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-23-generic 2.6.32-23.37 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-24-generic 2.6.32-24.38 Linux kernel image for version 2.6.32 on x86
ii linux-image-generic 2.6.32.24.25 Generic Linux kernel image
peter@peter-laptop:~$ free -m
             total used free shared buffers cached
Mem: 2004 575 1428 0 53 296
-/+ buffers/cache: 225 1778
Swap: 222 0 222
peter@peter-laptop:~$

Revision history for this message
Peter T Butler (pnbutler32) said :
#42

Also i notice when i check memory in disk usage analyzer in the preferences, I can only
look at the memory in the 4 gig
THe 16 gig memory is not showing for some reason and things that should be going into the main memory 16gig are ending up in the 4 gig memory
I do remember when the 16 g was showing things were being saved in it instead of the 4 g memory
what is causing this? as it may be a clue to what is happening
Peter

Revision history for this message
Peter T Butler (pnbutler32) said :
#43

i also notice system monitor only shows 4 g file
does not show 16 g file
will show external files if one is plugged in sd slot

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#44

Peter you have 2 giga of ram memory i still in doubt you confuse the ram memory and free disk space so please give the result of this terminal commands...:

df -f

and

sudo fdisk -l

the system ask you a password give your user password, you will not see nothing when you type it, then press enter

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#45

Better...

Please give the result of this terminal commands...:

df -h

and

sudo fdisk -l

the system ask you a password give your user password, you will not see nothing when you type it, then press enter

Revision history for this message
Peter T Butler (pnbutler32) said :
#46

peter@peter-laptop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 3.5G 2.7G 623M 82% /
none 999M 320K 998M 1% /dev
none 1003M 100K 1003M 1% /dev/shm
none 1003M 92K 1003M 1% /var/run
none 1003M 0 1003M 0% /var/lock
none 1003M 0 1003M 0% /lib/init/rw
/dev/sdc1 7.4G 22M 7.4G 1% /media/or translat
peter@peter-laptop:~$

peter@peter-laptop:~$ sudo fdisk -l
[sudo] password for peter:

Disk /dev/sda: 4034 MB, 4034838528 bytes
255 heads, 63 sectors/track, 490 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a1984

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 462 3708928 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 462 491 228353 5 Extended
Partition 2 does not end on cylinder boundary.
/dev/sda5 462 491 228352 82 Linux swap / Solaris

Disk /dev/sdb: 16.1 GB, 16139354112 bytes
255 heads, 63 sectors/track, 1962 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf26d47c4

   Device Boot Start End Blocks Id System
/dev/sdb1 1 1962 15759733+ 83 Linux

Disk /dev/sdc: 7948 MB, 7948206080 bytes
81 heads, 10 sectors/track, 19165 cylinders
Units = cylinders of 810 * 512 = 414720 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot Start End Blocks Id System
/dev/sdc1 11 19166 7757824 b W95 FAT32
peter@peter-laptop:~$

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#47

Ok we have cleared the doubt (so i have changed summary of your original question)...

Revision history for this message
Peter T Butler (pnbutler32) said :
#48

I am new at all of this it is disk space i keep loosing om my 4g part
instead of it using the 16 g space

Revision history for this message
Peter T Butler (pnbutler32) said :
#49

does any one have an answer to this problem and how to fix it
or do I have to do some other operating system
PLEASE HELP !!!

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#50

As i can read here

- Disk /dev/sda: 4034 MB disk is of 4 giga
- Disk Disk /dev/sdb: 16.1 GB, 16139354112 bytes 16 giga
- Disk /dev/sdc: 7948 MB, 7948206080 bytes 8 giga

So please copy and paste here the result of this terminal command:

mount

Thank you

Revision history for this message
Peter T Butler (pnbutler32) said :
#51

I have another problem computer died with no lights lost all power
I will have to fix this problem first, before I can do anything with memory
problem. Thanks any how. Peter

Can you help with this problem?

Provide an answer of your own, or ask Peter T Butler for more information if necessary.

To post a message you must log in.