-   Linux - General (
-   -   The memory problem (

Gins 10-16-2005 07:29 AM

The memory problem
I am running Mandrake Linux 10.0 version on Intel Celoron Processor; it is Pentimum III.
I have 256 SDRAM in memory and the graphic card is NVIDIA with 64 memory.

Is the memory too little to run Linux? I am noticing some tardy nature when loading the Open Office Word processor.

Your comments, please.

I have some plans to upgrade to Mandriva 10.2. It may not be a good idea as I have so little memory.
I would like to hear from you all.

BoldKiller 10-16-2005 07:43 AM

256 Mb should be alright. I mean its not a lot, but it depends on what you do with it. Open Office is kind of a big application. But it should be alright.

If its really slow, what I would suspect is your desktop manager. Check what it is starting when you boot the machine. If there are lots of deamons that you dont use that are running, they will use up your ram for no reason. What is it? Gnome, KDE, etc??


I am noticing some tardy nature when loading the Open Office Word processor
How slow is it? If you mean its now opening as soon as you click the icon, thats normal. But once its started, you should not have any problem.

Finally, PC133 SDRAM has really gone down a lot. If you are planning on keeping that machine for sometime, it could be a really good idea to invest in a little more memory. You will really see a difference in the performance of the machine.

cs-cam 10-16-2005 08:48 AM

You won't notice any slowdown between Mandrake 10 and Mandriva 10.2. If OpenOffice is too slow for you, there are alternatives such as AbiWord or KOffice which I believe is a bit lighter than OpenOffice.

Gins 10-16-2005 10:25 AM

I had 768 memory on my previous computer. When I clicked the Open Office, it startd very quickly.

Now when I click, it is struggling to come on to the screen. Of course, I have always the Firefox browser working with 3 or 4 web sites.

How do I find out daemons? I don't want them.

BoldKiller 10-16-2005 12:08 PM


How do I find out daemons? I don't want them.
Be carefull about statements like that. You should not deactivate deamons unless you know you dont need them. There are some that you will need no matter what.

You can know what is running on your machine by typing ps -a. You'll see a list of all active process (programs). You can post these here and we'll give you pointers at which ones you mignt deactivate.

Generally speaking, deamons are started from the rc scripts (/etc/init.d or /etc/rc.3 or someothers) It depends on the distro. I dont use Mandrake, so I dont know where they put their init scripts.

Lets give you an example:
rc.3 contains deamons runnig at runlevel 3 (type runlevel to know your current runlevel). You can remove some of them if they are useless. The RC folders actually contains links. They point to the scipt in the init.d folder. NEVER remove the init.d scripts, just remove the link to them in the rc folders.

BTW, I know there are graphical tools to manage these, but I never used them. If you want to do this graphically (usally is easier for someone starting), google about something like "deamon management linux graphical".

Hope this helps

Gins 10-16-2005 12:32 PM

Thanks BoldKiller

Here is the output:
[nissanka@c83-250-90-204 nissanka]$ ps -a
17744 pts0 00:00:00 ps
[nissanka@c83-250-90-204 nissanka]$
Are there any programs to kill? Now I have opened 4 webpages using Firefox. I tried to open GIMP. The web browsers collapsed. This is a problem of memory. I destroyed the downloading of Mandriva ISO files when the browser collapsed

GIMP is like the Photoshop program in Windows. I don't want to open GIMP again.

Now I have open the shell to write or practice some script langage plus 4 web pages.

Please tell me what to do now.

BoldKiller 10-16-2005 12:34 PM

oups, sorry, its ps -A.
A is in capital letter. My mistake

Gins 10-16-2005 01:23 PM

[nissanka@c83-250-90-204 nissanka]$ ps -A
1 ? 00:00:02 init
2 ? 00:00:00 ksoftirqd/0
3 ? 00:00:00 events/0
4 ? 00:00:01 kblockd/0
5 ? 00:00:00 kapmd
6 ? 00:00:00 pdflush
7 ? 00:00:01 pdflush
8 ? 00:00:08 kswapd0
9 ? 00:00:00 aio/0
11 ? 00:00:00 kseriod
158 ? 00:00:00 devfsd
248 ? 00:00:00 khubd
1426 ? 00:00:00 ifplugd
1495 ? 00:00:00 dhclient
1539 ? 00:00:00 portmap
1553 ? 00:00:00 syslogd
1561 ? 00:00:00 klogd
1694 ? 00:00:00 xfs
1746 ? 00:00:00 mdkkdm
1762 ? 00:00:00 atd
1770 ? 00:23:34 X
1781 ? 00:00:00 xinetd
1808 ? 00:00:00 mdkkdm
1813 ? 00:00:00 cupsd
2039 ? 00:00:00 crond
2137 tty1 00:00:00 mingetty
2138 tty2 00:00:00 mingetty
2139 tty3 00:00:00 mingetty
2140 tty4 00:00:00 mingetty
2141 tty5 00:00:00 mingetty
2142 tty6 00:00:00 mingetty
2318 ? 00:00:00 startkde
2396 ? 00:00:30 magicdev
2412 ? 00:00:00 gconfd-2
2413 ? 00:00:00 kdeinit
2416 ? 00:00:00 kdeinit
2418 ? 00:00:00 kdeinit
2421 ? 00:14:44 kdeinit
2422 ? 00:25:27 fam
2431 ? 00:00:09 artsd
2470 ? 00:00:17 kdeinit
2562 ? 00:00:00 kwrapper
2566 ? 00:00:00 kdeinit
2568 ? 00:00:34 kdeinit
2570 ? 00:00:22 kdeinit
2577 ? 00:00:52 kdeinit
2586 ? 00:01:41 kdeinit
2587 ? 00:00:02 mdkapplet
2590 ? 00:00:17 kdeinit
2596 ? 00:00:08 korgac
2631 ? 00:00:04 kdeinit
2636 ? 00:00:00 kdeinit
2761 ? 00:00:00 kdeinit
17582 ? 00:00:00 firefox
17593 ? 00:00:00
17598 ? 00:10:26 firefox-bin
17674 ? 00:00:09 kdeinit
17675 pts0 00:00:00 bash
17745 ? 00:00:00 modprobe <defunct>
17831 pts0 00:00:00 ps
[nissanka@c83-250-90-204 nissanka]$

BoldKiller 10-16-2005 01:34 PM

well, it always depend on what you want to do.

xinetd is not necessary unless you want to run some kind of server.

You seem to have a lot kdeinit. Its normal to have more than one. But There really seems to be a lot. Someone who uses KDE should confirm that.

XFS: is your file system xfs or ext3? Is its ext3, you dnot need XFS. (type mount, to know the filesystem type).

Those are the one I saw in a quick scan. You should try to google for some of them to know what they do and if your really need them.

BTW, You could check memory usage. Check /proc/meminfo. You will see ram usage and swap usage. free memory is rather small, then you will be sure its really a memory problem. You can then investigate your deamon and figure out those you should disable. Otherwise, it could be something else.

Gins 10-16-2005 02:15 PM

Thanks for the reply.

How do I find ram usage in proc. The following is the output.

[nissanka@c83-250-90-204 nissanka]$ ls /proc
1/ 1746/ 17852/ 2140/ 2421/ 2577/ 4/ cmdline execdomains kallsyms mounts@ swaps
11/ 17582/ 17871/ 2141/ 2422/ 2586/ 5/ config.gz fb kcore mtrr sys/
1426/ 17593/ 1808/ 2142/ 2431/ 2587/ 6/ cpufreq filesystems kmsg net/ sysrq-trigger
1495/ 17598/ 1813/ 2318/ 2470/ 2590/ 7/ cpuinfo fs/ loadavg partitions sysvipc/
1539/ 1762/ 2/ 2396/ 248/ 2596/ 8/ crypto ide/ locks pci tty/
1553/ 17674/ 2039/ 2412/ 2562/ 2631/ 9/ devices interrupts mdstat scsi/ uptime
1561/ 17675/ 2137/ 2413/ 2566/ 2636/ apm diskstats iomem meminfo self@ version
158/ 1770/ 2138/ 2416/ 2568/ 2761/ buddyinfo dma ioports misc slabinfo vmstat
1694/ 1781/ 2139/ 2418/ 2570/ 3/ bus/ driver/ irq/ modules stat

How do I shutdown xinetd? I don't have a server.

BoldKiller 10-16-2005 02:17 PM

type "cat /proc/meminfo" its going to display the content of the /proc/meminfo file. This file is maintain by the OS. It is used to display the amount of memory used.

As for Xinietd, there is a link someplace that is starting it. I assume you are in runlevel 3 or 4. Than, it is most likely in /etc/rc.4. Or something similar. (it really changes from one distro to the other, I'm a debian user, so I dont know where exactly mandrake stores it). Anyway, just find the link and delete it.

The rc.4 folder contains a bunch of links. Those are all the programs that linux is going to start when going in runlevel 4. There is also a /etc/rc.3 for the programs started in runlevel 3. (there actually is an rc folder for every runlevel. usally 1 to 5).

Gins 10-16-2005 03:07 PM

Thanks BoldKiller

What information you get by reading the following.? I have no clue as to the free memory or how it uses the memory.

[nissanka@c83-250-90-204 nissanka]$ cat /proc/meminfo
MemTotal: 125304 kB
MemFree: 1252 kB
Buffers: 560 kB
Cached: 25320 kB
SwapCached: 0 kB
Active: 110644 kB
Inactive: 2404 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 125304 kB
LowFree: 1252 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 96 kB
Writeback: 0 kB
Mapped: 102732 kB
Slab: 6872 kB
Committed_AS: 157196 kB
PageTables: 1180 kB
VmallocTotal: 909236 kB
VmallocUsed: 2784 kB
VmallocChunk: 906044 kB
[nissanka@c83-250-90-204 nissanka]$

Tinkster 10-16-2005 03:16 PM

Well, that means that the thing has 128MB, not 256, and
that you don't have swapping enabled.

The "collapsing" of the browser means that the kernel
will randomly kill some application when it can't allocate
memory for your next thing to open.


Gins 10-16-2005 03:20 PM

Thanks Tinkster

I bought this second hand computer. It has a 256 module. I am upset to learn this 128 memory.
How do I enable the swap file?

phil.d.g 10-16-2005 03:21 PM

Looks like you don't have a swap partition or file, this could cause problems of you try to open too many programs at once. At the minute just under half of your memory is currently being used by processes

Nevermind, looks like I was beaten too it. Thats what you get for watching TV whilst browsing LQ I suppose

All times are GMT -5. The time now is 12:33 AM.