Ubuntu :: Record Memory Usage Of Program?
Jan 17, 2010
Is there a way I can start a program and then record a log of how much memory it's using at a specific interval until the program ends?
I've tried writing a shell script but get the error: ./apps/mem-test.sh: line 4: [: too many arguments
Here's the non-working script:
Code:
$HOME/apps/ImageMagick/bin/convert -limit memory 64 -limit map 128 $HOME/SSI/davidkennardphotography/Img-Orig/95-Pole-Bank.jpg -set option:filter:filter Lanczos -set option:filter:blur 0.8 -resize 1024x720 $HOME/resizedImage.jpg &
GOODY="ps -p $! -o pid,%cpu,rss,cmd | grep convert >>test.txt"
[Code]....
View 3 Replies
ADVERTISEMENT
Sep 22, 2010
I wrote a program that multiplies 2 matrices using multi-threads and another one using multiple processes and shared memory. Both in C.I need to find the total memory usage of these programs. I know of the top command, but when my matrices are relatively small they don't even show up on top because they complete so fast, how can I find the memory usage for these instances?Also, how can I find the total turnaround time of my programs?
View 3 Replies
View Related
Jul 19, 2010
Basically I have a machine with 16GB of RAM and have just discovered that using all of it can crash the whole system over one process. How could I run a process on the system in such a way that if more than 90% of system memory is used, the process immediately crashes?
View 3 Replies
View Related
Jun 28, 2013
I have a java program that runs on Debian as a background processor. Yesterday the Java program stopped running. I looked at the memory usage, the system only had 5MB memory left, so my guess is that the java program ran out of memory to use.
However, after we restarted the java program, we could see that the free memory count started to go up. It kept going up from 5MB to over 400MB. The increase of memory happened slowly, when I measured it, I could see that with each minute passing by, there were a bit more memory added into the free memory pool, and meanwhile, the java background process was running.
I wonder why this would ever happen. It's as if our java program first brought the machine done because it consumed all the memories, then after restart, it starts to give back memories.
View 2 Replies
View Related
Mar 15, 2010
I was trying to get the status of memory usage and disk usage using sigar in windows and ubuntu. done this in windows by just copying the sigar library into jdk library. But i was unable to do so in ubuntu. I've copied the library to java-6-sun library but still can't run the program.
View 14 Replies
View Related
Mar 18, 2011
I have a computer with 16GB of ram. At the moment, top shows all the RAM is taken, (NOT by cache), but the RAM used by the various processes is very far from 16GB.I have seen this problem several times, but I don't understand what is happening.My only remedy so far has been to reboot the machine.
View 1 Replies
View Related
May 3, 2011
I am looking for free database that has low memory usage and innodb and memory like engins that has C API and support trigger and client/server support for using in embedded linux systems.
View 8 Replies
View Related
Jan 13, 2009
I am sure that all of us know the result of top command in linux. i want to get the value that the top command return as CPU usage, memory usage. so how do i do(programming relation)?
View 3 Replies
View Related
Aug 6, 2010
I've come across a really strange issue with one of my RHEL servers. The "free" command shows that 7019 MB of memory are actually in use by my system, but when summing up the actual usage (or even virtual usage like the example below) it doesn't add up - the sum is far less than what is reported by "free":
Code:
[root@server1 ~]# free -m
total used free shared buffers cached
Mem: 12011 7946 4065 0 4 23
-/+ buffers/cache: 7919 4092
[code]....
View 2 Replies
View Related
May 11, 2010
Is this normal? I check system monitor and the top most is xorg followed by compiz. When I first started with 10.04 few days ago it was around 300-500MB.
View 3 Replies
View Related
Jul 11, 2010
My problem seems to be very simple, it's high memory usage. I occasionally will use movie player to watch a few shows and I use firefox as well. My memory usage starts out real small about 500 mb but after using firefox lightly and movie player it jumps to almost 2 gigs and this is after they've been closed what gives? I've attached an image so you can see what I'm talking about.
View 7 Replies
View Related
Aug 16, 2010
I've been having some problems with Lucid; all my applications seem to be hogging memory like no tomorrow. Within about 15 minutes from booting the system, processes like Google Chrome, Nautilus, Python, Pidgin all start to take seemingly too large amounts of memory.
Chrome is the worst one, easily shooting over 200-300MB of my 2GB's of RAM. I would have reported this as a bug in Chrome itself, but my other applications seem to share the problem to some extent. Also: My colleague has identical hardware and identical versions of Ubuntu / Chrome, while he has no memory problems whatsoever.Currently I am running Chrome, Geany, Pidgin, Thunderbird and FileZilla. For this and itself, Ubuntu now consumes 1.8GB of RAM (that's including 500MB cached).
View 7 Replies
View Related
Jun 27, 2011
If i download something using KTorrent or Transmission, my RAM Memory ( 2G GB ) is filling up and my PC dies slowly.
Only with saidar i can see this, if i use System Monitor, things look normal.
I'm using Ubuntu 10.10 and i'm also having this problem when i'm watching movies.
View 2 Replies
View Related
Jan 11, 2009
i am wondering How to get usage of CPU, Memory in linux environment? So would you able to tell me the ways?
View 10 Replies
View Related
Jun 2, 2010
I am having a few problems with a red hat box involving memory usage. I have 64Gb memory and 'top' tells me I'm using 60Gb of it, but if I add up all the '%MEM' figures I get no more than 20%. Where is the other 80% ?
We have an ORACLE instance that is using shared memory but this is ceilinged at 45Gb. That means there is about 15Gb unnaccounted for . What utilities can I use on red hat to ascertain memory usage other than 'top' ? Any better ones, more detailed, looking at shared memory etc and swap ?
View 2 Replies
View Related
May 15, 2010
I like a lot of the last Ubuntu editions, but my computer is a little old, and Ubuntu becomes slower each edition to me.
I get a AMD Athlon 2 GHz, with just 512 MB of RAM memory...
I tried to customize my last installation of 9.10, but i just mess up with the OS. Well, I googled for informations about reducing memory usage, as well others speed-ups but all them are a bit older. Does anyone know any resource about this?
Until now I just disabled startups programs, but i really want is remove packages and everything that I don't use.
One thing thats get me up set sometimes is that I run Win XP pro under a cryptographed partition, and even yet its very fast in my PC. I even tried Windows 7, and its was faster than the Ubuntus I installed.
When I'm using the 10.04, there is a lot of memory used by cache, specially Gnome...
View 3 Replies
View Related
Mar 25, 2011
I have added the cpu usage monitor in the taskbar in lubuntu 10.10. However did not find any application for memory usage. Where can I find that?
View 1 Replies
View Related
Sep 17, 2009
I'm trying to understand the performance of my machine and memory usage just isn't adding up. When I run top it will typically show 301M of 308M used but the total of everything in the RES column is no where near 300M and the total of %MEM column isn't more than 20-30%. So how do I figure out what is using all the memory? Then is there some way to control it to optimize performance?
View 3 Replies
View Related
Apr 13, 2011
Under SuSE, (Mem: 31908592k total, 31421504k used,) how do i know which process or program using my memory?
View 2 Replies
View Related
Apr 15, 2011
I am a bit worried about my linux vserver box. No more memory is left. To investigate this issue, i was looking at "top". But it deeply confuses me. It seems that no more memory is left, altough the process list in top never adds up to 100%
[Code]...
View 4 Replies
View Related
Feb 18, 2010
Memory of my Linux database servce is all used up. I first noted that this morning and rebooted the box. 5 hours later, it saw used up again. I want to find out which process is responsible for using most of the memories. What Redhat Linux utility can list processes sorting by their memory usage, like the Windows task manager?free and vmstat - summary but not for each processtop appears to be infomative, but sum of non-zero %MEM never add upp to 100
View 3 Replies
View Related
Mar 31, 2010
Maximize Linux Memory usage
View 11 Replies
View Related
Jul 15, 2010
I wanted to know the best way to monitor memory usage, us space and processes and receive an email if a problem occurs?
View 2 Replies
View Related
Feb 1, 2010
in this example, my memory 993.4 MiB memory is said to have 575.9 MiB of it used and 163.4MiB of my 2.8 GiB swap memory used. but in my processes tab, the most memory hogging program is 98.3 MiB, and Pidgin, 25.9 MiB, and 18.9 MiB, 14.9, 6.2,6.1,5.2,3.4,3.3,1.8,1.8,1.7, etc. I'm certain these don't add up to 575.9 MiB so where is all this extra memory usage coming from?
also, why is data measured in MiB?
View 6 Replies
View Related
Mar 10, 2010
Currently I have one instance of Avidemux indexing a 16GB mpeg2 file, another instance of Avidemux transcoding a 4.7GB mpeg2 file into an 860MB mpeg4 (by two pass encoding with fully exhaustive motion detection, extra quality filters, and a wide VBR range), vlc playing a DVD-quality avi, totem playing a DVD-quality ogm, and I'm capturing video from a pvr card.. With compiz managing the desktop (with all the most disgusting eyecandy on: wobbly windows, Atlantis, desktop sphere, experimental plugins from git, etc).My processor (3GHz Athlon x2) is completely maxed out of course... but I can't seem to raise the memory usage over "1.2GiB (16%) of 7.8 GiB"Is that normal? Is there something else I could do to test my memory capacity? (as in really usefulapplications, not just benchmarks)?Alternatively, if karmic is never going to use the rest of that memory, I might opt to run some parts of the desktop environment and/or kernel from a ramdisk.
View 9 Replies
View Related
Apr 2, 2010
I've been using Rhythmbox for a while now and I've noticed that it begins to gobble up all the available memory - forcing me to restart it. I think I finally figured out why - Daap share and skip. All my music is on a share and when I skip through it (I have it on random and usually need to do about 5 skips before I find the next song I want to hear) Rhythmbox's memory usage skyrockets. Is this fixed in a newer version? Using Rhythmbox 0.12.5 on Karmic 9.10.
View 1 Replies
View Related
Aug 3, 2011
running top shows:
Tasks: 165 total, 1 running, 164 sleeping, 0 stopped, 0 zombie
Cpu(s): 3.5%us, 2.2%sy, 0.0%ni, 93.9%id, 0.5%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 3721884k total, 3376604k used, 345280k free, 107524k buffers
Swap: 3855356k total, 40k used, 3855316k free, 2013536k cached
but System Monitor tells me that only 33.9% (1.2gb of 3.5gb) is being used. Why is the memory used difference so great?
View 3 Replies
View Related
Jan 8, 2010
When at the console, what is the command (if there is one) to determine memory usage (used/free) on the hard drive that is being used for one's OS?
View 2 Replies
View Related
Mar 12, 2011
I've installed my debian sid about one month ago (first xfce, next gnome) but noticed that it's kind of really slow. The upgrades take ages, launching (and using) firefox takes so much time,... In comparaison to my ubuntu, archlinux (on the same computer) or previous installation of debian there is clearly a problem somewhere.Today I tried to do a "top" sorted by mem usage : 3.5% xulrunner-stub, 2.1% dropbox, 1.4% aptitude (doing upgrade), 1.4% clementine,... nothing terriblebut still I've 2.7Gb or RAM used (more than 50%)
$ free -m
total used free shared buffers cached
Mem: 3967 26851282 0 79 1938
[code]....
View 4 Replies
View Related
Mar 16, 2011
I use a Debian Squeeze system running off a flash drive, i.e. based on a custom Live image running in persistent mode. It runs great and I am grateful for the existence of Debian . However, I have a question. A lot of the machines I use this pen drive on are quite old, often with 512 MB RAM and old processors. I specifically built my system using XFCE and lightweight apps off an initial live image using the standard-x11 package list (basically just Xorg with drivers and the base system). At first things ran very well, blazing fast even on the oldest systems and could comfortably run Firefox along with LibreOffice side by side (I need LO as all of my colleagues use Word docs, often with track changes, which Abiword can't handle properly). However, over time, I've found that memory usage has risen, tot he point where Firefox is now automatically killed on the older systems every time I start LibreOffice.how does one figure out why memory usage is going up? I've checked for inessential services and turned them off with "insserv -r". I've used only lightweight apps, as mentioned before. Are there other general tips on reducing memory usage?
View 4 Replies
View Related