General :: Using / Usr / Bin / Time Always Returns 0 When Getting Maximum Resident Memory?
Mar 5, 2010
First time here at LQ, so if the post is in the wrong place, this is a bit programming related. I've been trying to find the maximum resident memory of a process in a memory constraint situation.
Instead of using top, or ps, which gives me real-time snapshot at the memory usage of a process, is there a way to determine the maximum resident memory used by a process? /usr/bin/time seem to provide this functionality within the format string
[Code]...
The minor page-fault is suspicious, does that mean memory is being used.. but not recorded? if so, how can I know how much memory is being mapped?
View 3 Replies
ADVERTISEMENT
Feb 3, 2010
we found that if we use 'top' to show the memory usage of a server (SuSe Linux 10), we can get virtual memory usage as well as 'Resident memory' usage. For virtual mem or a particular process, it is around 1.1GB, which is large but for resident memory, it only consumes 300MB. Are there anyone who knows what the differences are? I would also like to know whether the difference (1.1GB - 300MB) = 800MB are actually available for use by other applications in the system.
View 1 Replies
View Related
Jul 17, 2011
How do I change the size of the available shared memory on Linux?evidently 4GB is not enough for what I am doing (I need to load a lot of data into shared memory - my machine got 8GB of RAM).
View 2 Replies
View Related
Aug 20, 2009
I use the time command to measure the wall-clock time of a GPU implementation of an algorithm. When I time the CPU execution of the algorithm time returns a negligible sys time. However, when I time the GPU execution time returns a sys time that is around 20-30% of the total time. If that time was comparable with the negligible sys time of the CPU I would achieve a speedup of a few times higher.
I suspect that the increased sys time is because of the GPU usage, which, I assume, takes some time for the OS because of the drivers etc. I am not sure though, and it is important to figure this out because it will improve my results a lot if I can ignore the sys time and use just the user time for speedup calculations. Also, is there a way to see, in detail, what is the sys running and takes so much time. I am thinking that I might be able to see if it is the driver indeed that causes this delay.
View 6 Replies
View Related
May 9, 2011
When I run ardour sound editing I get this message , but it starts ok Your system has a limit for maximum amount of locked memory! This might cause Ardour to run out of memory before your system runs out of memory. You can view the memory limit with 'ulimit -l', and it is normally controlled by /etc/security/limits.conf
bash-4.1$ ulimit -l
64
my limits.conf is like this
audio - rtprio 99
@audio - memlock 250000
[Code]...
View 2 Replies
View Related
May 17, 2011
My problem is I installed Zone Minder for camera security and I'm testing it on my laptop with the built in webcam and everything seems to work perfectly except when I try to view the live feed from the camera, it's just a black box. No video.
I checked this website and it's exactly the problem I'm having with a fix for it but his fix doesn't work. He says to type:
Code:
user@ubuntu:~$ sudo echo "256000000" > /proc/sys/kernel/shmmax
user@ubuntu:~$ sudo service apache2 restart
user@ubuntu:~$ sudo service zoneminder restart
But when I do the first line, I get this:
Code:
deemar@Clementine:~$ sudo echo "256000000" > /proc/sys/kernel/shmmax
bash: /proc/sys/kernel/shmmax: Permission denied
View 2 Replies
View Related
Jul 24, 2009
I have a few multi-user servers in an academic laboratory. I am having a problem with some users maxing out the available RAM, causing such sever slowdowns the machine essentially crashes. My servers are Dell Power Edge's running Ubuntu 8.10 Server Edition (Not my choice). I would like to set a maximum limit on the amount of ram a user can utilize. This morning I experimented with setting limits via /etc/security/limits.conf and using ulimit. Neither of them prevented my test program, a simple infinite loop of mallocs, from crashing the server.
View 7 Replies
View Related
Jun 13, 2010
I am working on a C++ application, using the latest Slax as distro and CodeBlocks 8.02 as IDE.
I have a problem that is really biting me hard... And i'm sorry if my questions will sound trivial: i'm still a C++ noob...
Basically,looking with KSysGuard i can notice a constant increment of the VmRss parameter,i.e. the resident set size of my program.
While stepping with the debugger i noticed that the VmRss parameter increases by 4 (KB?) when i push_back into some STL vectors (i have this problem in various parts of the code).
While i analyze the problem with KSysGuard i'm also looking at the /proc/statm file of my process. When KSysGuard shows a VmRss increment by 4, i can actually see an increment (by 1) in the 2nd parameter of that file (which is the resident set size) but not in the 1st parameter (which is the total program size).
What surprises me most is that the VmRss is reported in KB and i really am not pushing 4 KB inside the vector all at once...
So i ask:
1)Is this a memory leak?
2)Why the total program size doesn't increase?
3)To me, it looks like VmRss increases "cumulatively" only after several insertions in the various vectors.
View 3 Replies
View Related
Aug 13, 2010
When the systen is running there is a program/utility/kernel-driver? kthreadd in system monitor all the following programs are a child process of kthreadd. Is kthreadd part of elevator=cfq and can kthreadd be influenced by params. kthreads uses no cpu time memory or shared memory so it must be in kernel. is there any documentation on this subject? System 11.3 on quad processor 8 gb mem nvidia-card and driver.
View 3 Replies
View Related
May 5, 2011
My server is keep on hanging So I have rebooted several times in the last couple of weeks, the system is eating more memory and the usage is keep on increasing and at particular time it became saturated and my server hungs. I could not find which process is eating more memory. I have used the below commands to check if any process is eating more memory but no luck. No such process are using high memory.
1) Top
2) ps -eo pcpu,pmem,user,args
[Code]....
View 3 Replies
View Related
Apr 20, 2010
I am using malloc and frees a lot in my program. It shows its allocated but when i remove it doesnt show as the memory is removed(I am using the top command to view VIRT memory usage). If this continously grows what would happen to my program (Will it go out of memory?)
View 4 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
Oct 6, 2010
I'll often run iceweasel for watching videos via flash (hulu, ....., et cetera) while working, in fedora I never noticed any performance problems, watching the video while using chrome for browsing, gedit for editing, et cetera, everything was responsive. Though, now on debian running iceweasel for the same purpose hogs memory and processor time, which slows down the responsiveness of the system as a whole, making it difficult to use other programs.I'm curious how I should go about troubleshooting this issue, and what diagnostics might help me find the solution.
View 4 Replies
View Related
Aug 14, 2010
I have an Acer Aspire netbook with 1GB RAM and 1.6 GHz dual-core 32-bit x86 chips. The KPackageKit / yum / rpm chain is running too slow for me. In addition to the time required to download any new packages or updates, it seems to require at least one full minute of processing time to install each package, update, or bug fix, no matter how small. Another full minute is consumed for each package in "cleaning up."Running yum from the command line takes nearly the same amount of time.During this time, I cannot run any other applications without severe thrashing. It seems that a full gigabyte of memory is in use with some 100M swapped out to disk.
Is there any way to reduce the running time and memory requirement of the update process?While not updating or installing software, I do not normally run out of memory (i.e. begin thrashing) until I have about a dozen browser tabs open, or the like.
View 9 Replies
View Related
Mar 9, 2011
In my computer with Ubuntu 9.10 the battery backing CMOS memory is dead (and replacing it is not an option). This requires from me to set up RTC time in BIOS each time I turn on computer (default date is from couple years back). When I don't set time, Ubuntu don't want to startup and it shows me fallowing message :
/dev/sdb1 : Superblock last mount time (Tue .... 2011, now = Mon ...200 is in the future.
/dev/sdb1 : UNEXPECTED INCONSISTENCY; RUN fsck Manually.
mountall: fsck / [842] terminated with status 4
mountall: Filesystem has errors: /
init: mount main process (840) terminated with status 3
Mount of filesystem failed.
A maintenance shell will now be started.
Is there any way to run Ubuntu without having RTC time set over, and over again in BIOS ? (It's acceptable for me not to have current time).
View 2 Replies
View Related
Dec 28, 2010
Created application is working too slow, looks like there are a lot of memory leaks, there are a lot of pointers. Any effective tool for run-time errors and memory leaks detection in Visual Studio C++?
View 2 Replies
View Related
Aug 22, 2010
This is my first post in these forums. I'm still quite new to Linux (using Mint 9) so please bear with my not-very-articulate question(s)When I boot up and open up a tty terminal I get a message saying "Memory corruption detected in low memory." I've done an extensive google search about the issue and it seems not uncommon. I ran a memtest with no errors returned, so I'm sure that there's nothing really wrong with the memory; apparently it's a bug in the kernel that's causing this.
View 2 Replies
View Related
Jan 17, 2010
I found from command 'top' that 8GB memory are used. However, using command 'ps' with some options to grep the running processes and then summing up the memory used by the running processes are less than 2 GB. Where has the used memory gone ?
View 7 Replies
View Related
Dec 24, 2010
How can I set my processor fan to 100% in linux?
View 1 Replies
View Related
Jul 23, 2010
I want to know what is the maximum no of processes that can be run in Linux ,as it is a multitasking so what is the limit of this.
some one told me that 8192 but why this not 10000 or 500 why 8192.
View 8 Replies
View Related
Jan 13, 2010
i assumed :i insert mode would allow to simply back space, no appearently not? it seems none of the websites anywhere on earth mention how to delete a carriage return in vi.
View 3 Replies
View Related
Jul 5, 2011
I was wondering what is the maximum number of partition on an GPT-partitionned drive under Linux. The GPT partition table can contain up to 128 partitions, but the device nodes for /dev/sda? (as described here, block device of major number 8) only allow /dev/sda1 up to /dev/sda15. Does that means that there cannot be more that 15 partitions on a drive, even on a GPT-partitionned drive?
View 2 Replies
View Related
May 10, 2011
I am facing a problem in finding out the maximum value of a field using awk .. The field is of date format i.e. (MM/DD/YYYY) ..
The contents of the file is :
2/2/2011 XYZ
2/2/2011 XYZ1
2/3/2011 ABC
2/4/2011 ABC
[Code]....
I need to find the maximum of the first column i.e. my output should be 2/12/2011 ..
I was using the below awk script : awk 'n < $0 {n=$0} {print n}{print $0}' <source_file having the above data>
But the output I am getting is 2/9/2011 instead of 2/12/2011 ...
what could be reason for this output and how can I get my desired result ..?
View 3 Replies
View Related
Feb 21, 2011
Does anyone know why something like:
echo lowercase | grep [A-Z]
Would still return the lowercase line even tho there is no match?
Using --color will show there is no match but the line is still returned.
I am still new but from what i've learned this should not work like that. ubuntu 10.10
View 13 Replies
View Related
Nov 24, 2010
I have this issue: "nc -v <ip-address> 22" works fine, but "nc -v <fqdn> 22" fails with error message "nc: getaddrinfo: Name or service not known". However, "host <fqdn>" works fine, so name resolution works. So I have a working name resolution, but nc (netcat) doesn't seems to be using it or something. Same kind of issue with "ping <fqdn>". Does anyone know how come name resolution works, but utilities such as nc and ping doesn't?
View 2 Replies
View Related
Jan 11, 2011
I really need to know this for a linux server, but since it also applies to client OSes, I figured the question should be posed here instead of server fault.
View 3 Replies
View Related
Apr 28, 2011
I would like to ask you if there is any maximum allowed number of files per folder in linux (without risking it to lose everything). I am using openuse 11.4 with latest kde (4.6?).
I am trying something fast and dirty and it might be that one folder will contain like 10^6 files.
Is there is anything I should be warned about that?
View 10 Replies
View Related
Jan 31, 2010
Are there a way to set fixed maximum processing power to a process.For example a program called 'X' uses cpu in high speed. I need to set this 'X' process to to run with maximum 20% of cpu usage at any time.
View 4 Replies
View Related
Jun 22, 2010
I have a file called abc.txt which has following contents.
10.180.8.231=31608
10.180.8.232=29011
10.180.8.233=31606
[code]....
View 3 Replies
View Related
Sep 11, 2009
I'd just like to know the max number of logical partitions an extended partition can hold. Is that number different for IDE and SCSI hard drives?
View 11 Replies
View Related