General :: Control The Cpu Usage For The Whole System?
Jul 12, 2010I want to control the limit of cpu usage of the whole system to a certain percentage, similar to cap the VCPU usage of a virtual machine. Is it possible?
View 4 RepliesI want to control the limit of cpu usage of the whole system to a certain percentage, similar to cap the VCPU usage of a virtual machine. Is it possible?
View 4 RepliesIs there any way to monitor one process' CPU usage and RAM usage over time on Linux? I am trying to change to a cheaper VPS and need to work out what level of CPU and RAM I need!
View 2 Replies View Relatedwhen we use the df command it list the disk usage list for all mounted files ..
#df -h
/dev/sda4 47G 34G 11G 78% /
varrun 1009M 120K 1009M 1% /var/run
[code]....
I was looking into using control groups to limit the memory usage of each user on my CentOS system. I was told that this required me to recompile the kernel to have cgroup support. Is this true? Or is there a kernel module that will allow cgroups to work for users and groups on the system without kernel re-compile? Or, is there another way to limit the users memory usage? I have tried ulimit and it doesn't seem to work right.
I ask since this setup will be on a VPS system, that means to re-compile the kernel I need to use Xen instead of OpenVZ. Plus I have never in my life re-compiled the kernel, least of all with different modules ha ha ha so I would have to pay my NOC to do it. So if I don't HAVE to recompile the kernel to get cgroup support.
I have been encountering lots of heavy system cpu usage. It is sporadic, last for about 10 minutes, and brings everything else to crawl (latency of even typing characters into an editor or a terminal is painfully slow). My computer is an i7 quad, and all 8 logical cores fire at near 100% during these periods. I can see the usage clearly with htop. The red bars in htop indicate system use (I have attached a screen shot for an example). However, as there is no process per se, I have no clue what is causing it.
It is something I have to fix as the computer becomes unusable periodically throughout the day.I One thing to add, I am using the computer as a ltsp server on ubuntu, attaching to it using two thin clients. There is always heavy ethernet traffic through the second ethernet card. I don't know if this is related. However, I do think all this problem began when I installed the ltsp and switched to using a thin client.
I'm running Ubuntu 10.04 and all was well on my home network until a household member decided to get a laptop and jump on my network. All he does is watch videos on ....., download crap from P2P sites, and maybe even watch p0rn. Is there something I can use to control this or maybe set my router to give him the minimum resources available? Also, I want to block him from downloading junk from P2P sites or places he might get a virus. I'm on a D-Link DGL 4500 Router.
View 1 Replies View RelatedI currently have two internet interfaces installed, one is ethernet (eth0) and the second is wireless (wlan0). Many command line applications allow you to specify which interface should be used, but many gui apps don't provide this option or at least I haven't found it. I have some questions:
1. How would I tell Firefox to use only my wlan0 interface? If it's possible in Firefox, is this also possible with Google Chrome?
2. If a program doesn't provide a command line argument to support this, is there a standalone application that could help manage preferences for multiple applications?
I have just started to have a problem with Xorg it is always using at least 30% of my CPU, and the whole system does not run smooth so if I play a video it does not run smooth, it judders, also even if I drag an icon it judders across the screen. Im running Ubuntu 10.10 2.6.35-25-generic x86_64 VGA compatible controller: nVidia Corporation G98M [GeForce G105M] (rev a2)
View 5 Replies View RelatedI need to find the memory usage of a shared library loaded in Linux environment.
I need this information for deciding on whether to make the library part in to application or a seperate application itself.
I generate more than 50GB of cache files on my RHEL server (and typical file size is 200kb so no of files is huge). When I try to delete these files it takes 8-10 hours. However, the bigger issue is that the system load goes to critical for these 8-10 hours. Is there anyway where I can keep the system load under control during the deletion.I tried using
nice -n19 rm -rf *
but that doesn't help in system load.
We have a system with 1 GB memory. Out of this, i would like to restrict only 512MB for linux and would like to access the rest 512MB directly from an application that runs on linux.
What is the suggested means to achieve this on 2.6.x?
I have a Linux system running (Debian). It is working perfectly from a remote point of view. I can ssh in it, it has the imap running correctly, and a couple of kvm systems running (I can also ssh to them). Well, it works!
But when I go in front of the keyboard/mouse/screen there's nothing. No way to switch between the consoles with Ctrl+Alt+F# (X is not running on this system). The screen is desperately black. But the screen does not go to sleep mode, it still has its green led on! I guess it means that the graphics card still sends the H and V syncs correctly (VGA connection).
Is there a process that is blocking the display and prevents me from getting the control?
Note: Last time I used the console, it was in console 1. Ctrl+Alt+F1.
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 RelatedI tried hard so that I can stay away from version control but in almost good job specifications, I find version control as requirement. So I thought I had to start from somewhere. I always tried to read it but haven't got much luck with it. So I have few problems to ask. I am confused and I really want to know how can I use version control in my context and how will my working environment change with it.
I have Linux VPS Server. I use capnel/whm to create sites in php/joomla. So is version control a software or script which I can install on my linux box like ./configure. Or I have to install it on every site like any framework I use Dreamweaver to edit files via FTP. Now if I install version control then do I still use same method to edit files or then method gets chnaged What about the database like MySQL will it stays same or its also version controlled Will version control make my system slow and how much space it uses on my server.
Title sums up my problem. Im running so many processes in Slackware, running KDE. I dont even run that many programs, and already its more than XP has (by a **** load). What is wrong here, and how do i kill a lot of the processes to cut down on my cpu usage by tons and cut down memory usage while still keeping everything the same?
Heres a picture of my system monitor - img651 DOT imageshack DOT us/img651/5994/systemmonitorz.png
I didnt put image tags because its a fullscreen.
The memory rises over time, when I restarted my computer it was up to 500 - 600 mbps. At the minute after its at 360.
I don't care if this is done in the bios or a kernel module or software. Is there any way at all to do make the 'fn' key act as 'control' and the 'control' key act as 'fn' in linux running on a macbook pro?
PS. You can do this with software in OSX with the application KeyRemap4MacBook.
How to control a windows system by using linux server i know linux is a cross flatfarm. But how to Authenticate windows system like in windows we use AD for user authentication.
View 3 Replies View Relatedquite often my computer will slow down, and all the cpu indicators will show 100%. However, when I open System Monitor to see what is using all the CPU, it doesn't show anything much at all. I have attached a screenshot to show what I mean. CPU is running at 91% load, however, I make the total 35% in system monitor.
View 3 Replies View RelatedI am having a slight issue with my netbook (toshiba nb305) Just fully switched to Ubuntu 10.10 from Windows 7 starter so still a little new. I first installed the 32 bit version and everything was all sorts of peachy. But while reading some documentation on my model I ran across a cryptic line that hinted at my cpu being 64 bit. Did a little research on these forums and ran a command in terminal (honestly cant remember it) that listed the specs on my hardware. Sure enough my "width" was listed as 64 bit.
Well just to give it a shot I Downloaded the 64 bit version of 10.10 and Installed it on another partition. Up and running checked over everything. Appears to be normal. But on a whim I went into the System Monitor and noticed not one cpu but 2? Confirmed same situation on 32 bit.
Processor 0: Intel(R) Atom(TM) CPU N455 @ 1.66 GHz
Processor 1: Intel(R) Atom(TM) CPU N455 @ 1.66 GHz
Ok I was a tad bit confused so I was about to do a lil research on it. But then I noticed on the Resources tab that under 64 bit my CPU History graph showed both processors Pegged at 100% With nothing running except for the basics. Under the 32 bit it was reliantly low? I checked the Processes tab in both to confirm there wasnt a unusual process out there jamming up cpu usage but the highest cup listed was the gnome-system-monitor at like 40 est %. Nothing showing up using the CPU that vigorously.
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 RelatedI need to install Fedora on 4GB SDHC card, so the space is limited.My question is what files (documents, manuals, temporary files, logs, unused packages etc) I can remove, without harming the system?So far I cleaned /tmp, /var/log, trash what else?
View 8 Replies View RelatedTransmission seems to cause a kernel panic when I try to use it. Using system monitor to watch cpu usage, as soon as I fire up transmission, the cpu usage spikes to 99 and 100 percent and the transmission window grays out. I set firestarter to allow bit torrent usage, I was wondering if there was something else I needed to do or if transmission was broken. I am running an Athalon 3200 on an MSI motherboard with 2 gigs of ram.
View 5 Replies View RelatedI had been running Folding@Home as a distinct process when I was running Windows - I'd manually start and stop it. (This was intentional.) I just installed it on my Ubuntu 10.04 install, and it's running just fine.
The only thing that's strange is that while top and the System Monitor report the CPU usage correctly, the Hardware Monitor applet (1.4.2) isn't reporting the usage at all.
As I said, it's an annoyance, nothing more - the applet reports other CPU usage accurately, and Folding@Home runs smoothly and perfectly.
Gnome's Hardware Monitor applet (1.4.2), the one with "curves" and "flames", apparently displays both "user" and "system" processes. Processes marked "nice" (that is, only running when the machine is idle) do not appear as CPU usage. They do appear as CPU usage in the System Monitor applet.
I'm doubtful about my Ubuntu's ram usage, as I'm getting different values in top and System Monitor:
System monitor:
Top:
What could be causing this? What should I trust, Sysmonitor or top?
i installed ubuntu 11.04 beta rarely two months before. i m updating the version regularly. my system seems to slow very much for merely a month after its installation.what shall i do?
View 9 Replies View RelatedI used to have a program that displayed system information (cpu/ram usage, stuff like that) but the name escapes me at the moment. The key feature of this program is that it was intergrated into the desktop.
View 3 Replies View Relatedin 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?
I have a bit of mystery regarding my system intermittently freezing. First off, the info. I using/running: Ubuntu 10.10, 64bit version (clean installation) Intel(R) Core(TM)2 Duo CPU E8500 @ 3.16GHz (not overclocked) 6GB RAM Nvidia GTX260 Nvidia proprietary drivers 1TB Western Digital HD (32MB cache) Now, the problem: A while ago, I started experiencing intermittent system freezes that would last for 2 or 3 minutes and happen about once every 45 to 75 minutes.
The Gnome System Monitor (GSM) would show 100% CPU utilization, but top, htop, and conky only show about 11% usage. I pulled up the process list in GSM. However, I had issues, for the obvious reason, when bringing it up when the CPU was spiking. Even when I could, it only showed the usual suspects (Firefox, Deluge, Ktorrent, and Xorg) running the high single digits. This was backed up in top, htop, and conky. I also checked the RAM, but usage was down around 25%, with nothing in the swap.
I checked the messages log, but there was nothing there. Nor in dmesg. At least not that my limited Linux admin skills could find. The freeze just happened, so I've attached them in their entirety. I've come to suspect that Python is the cause. It happens most often when I have Ktorrent or Deluge going. I used to use Deluge, but moved to Ktorrent to test if Deluge itself was the problem. They're both written in python though, and both seem to cause the slowdown. It also happens when other python-based programs are running, such as the updater, but not as much or as bad. Things I've tried to fix the problem:
- Clean install (first time in over 18 months)
- Updated Nvidia driver by adding a repository
- Updated Deluge by adding a repository
- Enabled backports.
- Gave my PC the finger
This is driving me nuts. If it was just BT clients, I'd only run those at nights, but it's also parts of Ubuntu itself that relies on python, which I really think is the problem.
I have been using ubuntu for 4 years now on my decent laptop with 2 Gb RAM, dual core centrino, etc etc. Yet, in all those years I have been using this superior OS, I still have to do hard shutdowns because some program runs wild. I have lately 2 scenarios where I have to interfere with the process:
1: amarok crashes and leaves the python script for the gnome shortcut keys running at 100% CPU. Or: thunderbird-bin keeps running after apparently clean close of Thunderbird. That's not really bothering me, I just kill both processes.
The bigger problem is scenario 2: 2: VLC starts eating all my RAM (for no reason), my SWAP starts filling and my computer becomes unusable for 10 minutes. Or: my matlab script is too big and eats up too much RAM -> same. Note: I have nothing against SWAP because at many other times it's very useful
These are stupid and annoying problems where there is an easy solution:
1) automatically kill the stupid process that runs at 100% CPU
2) automatically kill the stupid process that eats up all my RAM
We are using wordpress with MYSQL. Both the app and DB server are different with 6CPU and 6GB RAM and 32bit processor. We had noticed recently that mysqld process is taking too much of system usage- ranging upto 100% of CPU utilization while having the load of 1200-1600 concurrent users.
Pasting d my.cnf file-
# The following options will be passed to all MySQL clients
[client]
port= 3306
[code]....