CentOS 5 :: Throttling Process Resource Consumption?
Mar 2, 2009
Is there a way of throttling a process resources, something akin to limits but for processes not users?ie I want processX to be restricted in the amount of memory it can consume. For process cpu I guess I can simply nice the process, but total memory consumption is my primary concern.
View 1 Replies
ADVERTISEMENT
Apr 2, 2011
I need a command that can get the memory consumption of a process called "job_runner_o".
Running ubuntu 10.10
View 2 Replies
View Related
Feb 21, 2010
I'm writting a program that uses a USB webcam. Sometimes the program crashes and exits, but sometimes it crashes and becomes a zombie process, which I can't kill even with -9/-KILL signal. When that happens, all access to th USB webcam is totally interrupted and all attempts to communicate with it fail.I'm looking for a way to either force this process to terminate or to at least make it release the webcam so I can use it again. So far, the only way I've found to regain control of the camera is to reboot
View 2 Replies
View Related
Jun 26, 2010
I want to change the resource limits for a specific processOr to create a new process and give it limits as I want, There is a function setrlimit, Which is possible to change it but for a programmatic I want to apply it to another Process, The problem is that this function does not receive process ID for example. I read in most books on the subject of The Linux system programming
View 1 Replies
View Related
Jan 12, 2011
I have de Dell desktop (optiliex 755) and i have instal CentOS 5.5 on it. Some informations about the system are:
View 2 Replies
View Related
May 27, 2010
How to assign CPU and memory resource to a certain process? How to assign CPU and memory resource to a certain user?Let's assume the software is no limit for resource usage.Below is a description of my situation.dual 6 core, 32G memory, RHEL5.5 client with workstation option.I run a big computation (say process1). However, I found from KDE system guard the CPU and memory are not loaded as expected. below are numbers. user% system%process1 100 0.00and CPU idle 90%, memory free 97%
View 3 Replies
View Related
Jun 30, 2009
System recognizes that CPU is capable of throttling, but there is no module to govern it. So Xeon always runs at full frequency.This is not convenient as my server is not always in full use, so I would like it to lower power consumption, especially for AC, with frequency scaling enabled.Can you help me is this some bug, misconfiguration in default kernel or guys who writes kernel think that scaling is not necessary for servers processors?
From my analysis so far, I think that the issue lies with the fact that module acpi-cpufreq does not support Xeons and that there is no dedicated module for this processor family (e.g. p4-clockmod) module in the default kernel.
View 5 Replies
View Related
Sep 11, 2009
I installed a while ago two CentOS 5.3 servers. One of them was running Samba and another OpenLDAP. I configured Samba to act as a PDC on the network and everything was working fine. I was already on policies configuration and desktop migrations.
The following problems are Samba server problem, LDAP server is on hold until I figure out the first problem.
Software conf:
Hardware conf:
One day, both servers began crashing, and after a while, it showed the following during the boot on Samba:
After that, ALL CentOS installations had this problem after yum update, epel installation and some smb.conf modifications:
I figured out it might be EPEL (i did installed yum-priorities and tryied updating the base sistem BEFORE epel installations), so I installed the system without EPEL yum repository. After some good and relieving 15 min working, the system crashed AGAIN after yum base update and showed the following on boot time:
And it stops right there.
Maybe some wrong kernel update? the first time it crashed in one way, with running updated system (After the first update, no manual update was done). The sequel problems were all after Kernel update and EPEL. The last one was just after Kernel update. I'll try one last time with NO updates, but i can't run the system like that.
I can't do anything that might one day crash, it's a 6000-7000 user gov environment, but i don't want to install another distro, so if I don't figure it out, they will order me to.
View 9 Replies
View Related
Aug 25, 2009
Now I'm using Centos 5.3. when I let ADP (a EDA Tools) to idle more than 1 hours. The tools will display incorrectly. The per letter will be displayed as pane. So I must close it and re-open it.When the status is displayed, the system always said:xlib resource id allocation space exhausted!Forestall I use Centos 4.7, the system always works well. But I'm using Centos 5.3.How to maintenance it
View 2 Replies
View Related
Dec 5, 2010
Trying to complete a RAID 1 mirror on a running system and have run into a wall at the last part. I can't add the active physical disk to the mirror. This is on a Centos 5.6 x86_64 system. Anybody know where to go from here? I've tried adding the nodmraid line to the kernel boot line with no luck. Tried removing the logical volumes from LVM, but it won't let me. Not a Linux newbie, but haven't set up a RAID in a long time.
[root@blackbox-0-2-e3-23-72-c5 ~]# mdadm /dev/md1 --add /dev/sda2
mdadm: Cannot open /dev/sda2: Device or resource busy
Here's output from fdisk -l:
[root@blackbox-0-2-e3-23-72-c5 ~]# fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
[code]....
Here's mdadm.conf:
[root@blackbox-0-2-e3-23-72-c5 ~]# cat /etc/mdadm.conf
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=3c6f7354:b9bfc86a:aa9d0dfb:cdd51bd8
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=31ee55ba:be3b3606:974ac87d:627435a9
View 9 Replies
View Related
Mar 28, 2009
I am trying to install CentOS 5.2 on an HP rp5700 desktop unit. These units were originally sold as a Point of Sales unit I believe, but HP also markets it as a high life cycle server for SMB market.I tried to load CentOS on this unit via CD (created from downloaded ISO of course). It presents the initial CentOS banner page and waits for the obligatory "enter" to continue. It begins the boot process up to discovering the PCI stuff and just locks up, no response. I have to power down to restart.Since this does not even get to the point of installing. I am at a loss what to do next. Has anyone had a similar issue with other PCs.The boot stops at the lineACPI: PCI Root Bridge [PCI0] (0000:00)
View 3 Replies
View Related
Sep 2, 2009
After being forced to rebuild my computer (failed drive) I finally got current and installed F11 (was using F9). I was watching GKrellm last night and noticed something odd. The CPU frequency on my processor (Phenom 9600) was scaled to the slower speed and was rarely being pushed to full speed.
I verified that cpuspeed was in ondemand mode and ran some processor intense tasks (huge image loads, large file cats, large yum installs, etc...). Only when I was able to sustain near 100% load would the system throttle to the full clock speed. It would then drop back to the slower speed very quickly even though the process was still running. As a rough benchmark, I ran these tasks again in performance mode to see what impact this was having. Most of these tasks were taking as much as 40-50% longer to complete in ondemand mode.
Digging further, I found that the default up_threshold in F11 is set to 95%!! This is verified by cating /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold. This means that the system would not throttle to full speed unless a 95% load was sustained for multiple samples (36 miliseconds each by default).
I overrode these settings in /etc/sysconfig/cpuspeed. I change up_threshold to 60 and down_threshold to 30. I am at work right now, so I can't benchmark this change until tonight. I guess I could have just set it to performance mode and left it, but I'd rather save the power when the machine is idle.
Does anyone have any thoughts on why 95% is the default and if there is any problem/benefit to changing this to a much lower value? It seems that anyone with a CPU running SpeedStep or CoolnQuiet would suffer the same severe performance impacts I saw with the default values.
View 3 Replies
View Related
Jun 8, 2010
I want to install ATLAS on my laptop to do this i have to turn of cpu throttling.
View 4 Replies
View Related
Nov 21, 2010
I'm trying to get speedstep to work on a intel ss4200 NAS box with a core 2 duo e4600 cpu.
I'm running Fedora 13; Kernel 2.6.34.7-56.SS4200.fc13.x86_64, which is custom with a couple of patches to properly enumerate the hard drive controler.
For some reason the cpu frequency driver it is picking is "p4-clockmod", how do i force the kernel to load the correct driver?
Code:
View 2 Replies
View Related
May 7, 2010
I'm trying to install ATLAS which requires disabling cpu throttling. Normally one can do it in the BIOS, while there isn't such an option of my dell inspiron 6400. Actually there is a SpeedStep option in the BIOS, however, you cannot get the highest but the lowest performance by disabling it (dell!!!).
After googled a lot, I found in some distros, there is a /usr/bin/cpufreq-selector through which one can disable throttling. But it doesn't exists in slackware.
I known that by appending kernel option "acpi=off", one can disable the whole acpi and thus the throttling control in slackware, but it seems so dirty.
Anyone known a better way to do it?
ps: With a intel T2050 cpu, i didn't find the directory /sys/devices/system/cpu1, but only the /sys/devices/system/cpu0. Similar case in /etc/acpi. it seems that slackware treats my cpu as a single core one, while it is not.
View 21 Replies
View Related
May 14, 2010
I am trying to limit bandwidth of certain ip addresses on my server. I have been doing hours of reading and not getting very far...
So far I believe the iptables command is:
And now I just need the tc command to read those marks and limit bandwidth, I have a gigabit connection and would like to limit each of these ip addresses to 10mbit in and out.
View 1 Replies
View Related
Mar 28, 2010
If I read /proc/acpi/processor/CPU0/throttling my processor is at T2 and I can not move it down to T0.
View 10 Replies
View Related
Nov 25, 2010
There seems to be many different ways of controlling bandwidth usage of downloads of content from Apache2. Does anyone know which is the standard module deployed/deployable in OpenSuse?
View 2 Replies
View Related
Apr 23, 2011
How to do bandwidth throttling in Squid server? i wan to set particular bandwidth for particular ip, how to do it in Squid server?
View 1 Replies
View Related
Jul 4, 2010
I'm going to set up a new linux router for a company, and have to set up bandwidth throttling. They have an unlimited ADSL internet connection which will be shared between 2 businesses, one being them. I will need to set it up so their connection will never be slowed down by the other business. They will both be connected to the same NIC, but will be on different subnets. How would I go about doing this?
View 2 Replies
View Related
Nov 6, 2010
Every time I use Transmission for torrent download it throttles my Internet connection although I set speed limits way below my bandwidth.
View 2 Replies
View Related
Apr 26, 2010
I'm not getting file transfers that utilize the max bandwidth of my ADSL broadband. I have a 512 kbps line (I know that's not broadband in most places, but such is the option available to me), and I usually get download speeds of 55-60 kbps. Since the past couple of days, this has dropped to an abysmal 2-3 kbps. So I used [url] to test my download speeds, and they were as expected (i.e. the usual 55-60 kbps). I also used the speed test page of my ISP, and that too, gave the usual results. There has been no throttling from the ISP, as I confirmed from their help desk.
Also, web pages open fine. It's only when I'm downloading a file (Yeah, web pages are also files, but what I mean is compressed archived files; .rar, .tar.?g* et.al.) that I can't get the desired speed. I haven't changed the resolv.conf file, not have I made any other changes that might cause this. I use ppp to dial-up to my ISP, and use the pon and poff scripts that ppp provides. I have a peers file configured for my ISP, which again, I haven't edited.
View 8 Replies
View Related
Aug 20, 2010
I am uploading the incremental backups using duply/duplicity using the sftp-module. As the initial upload is pretty big and runs several days (more than 50GB over a 1Mbps-line) I am confronted with the problem that other users in the network experience slowdowns when I upload.
I would like to run a script every n minutes which pings a host in the internet (second hop of the traceroute for example). If the response time is less than a value (150ms), the script throttles the upload for one specific host and protocol. Traffic to the local net (Samba mainly) should be unaffected. I cannot use the QoS of the firewall/router. Also I would like the penalty to be removed if the ping is quicker (loess than 70ms for example) I looked at trickle, and some other out-of-the-box shaping tools but they do not give me the possibility to change the rate while the upload is running.
I would now write a script in perl which uses [URL]some wrapper for iptables combined with some ping module [URL] Also I was trying to get the proof of concept before I start coding: (I haven't verified if this works yet)
sudo tc qdisc add dev eth0 root handle 11: cbq bandwidth 100Mbit avpkt 1000 mpu 64
sudo tc class add dev eth0 parent 11:0 classid 11:1 cbq rate 100kbit allot 1514 prio 1 avpkt 1000 bounded
sudo tc filter add dev eth0 parent 11:0 protocol ip prio 16 u32 match ip dst MyserverIP flowid 1:1
View 2 Replies
View Related
Apr 20, 2011
I was going through the article given here :- [URL]. Now my question is how to do this in linux ?
View 2 Replies
View Related
Apr 12, 2010
I'm thinking about some ways to limit access to my web-server. It runs Nginx and php in FCGI. The server contains a large amount of information. The data is freely available and no authentication is required but other companies might like to mirror it and use on their own servers.
The requests could be limited on different levels: IP, TCP, HTTP (by nginx) or by the php application. I found some solutions (like Nginx's limit_req_zone directive), but they do not solve the second part of the problem: there's no way to define a whitelist of clients who are allowed to use the data.
I thought about an intellectual firewall that would limit the requests on IP basis, but I'm yet to find such device. Another way was to hack some scripts that would parse the log file every minute and modify the iptables to ban suspicious IPs. It would take days and I doubt this system will survive, say, 1000 requests per second.
Perhaps, some HTTP proxy, like Squid, could do this?
View 2 Replies
View Related
Apr 14, 2011
After implementing a new protocol on ns2 , I need now to integrate infomation about nodes energy .So I am going to implement a new c++ code to define the model of energy consumption in every node .have you any exemples to help me getting started .
View 2 Replies
View Related
Jul 22, 2010
The topic of this thread says it all.
View 9 Replies
View Related
Nov 9, 2010
I have a linux server which is running squid proxy server, the configuration is 160GB HDD ,6GB ram, od is centos 5.5 64bit the problem i am facing is that the swap memeory consumption is showing me 0, screen shot is attached below with this mail. i tried swapon /dev/sda5 it says device busy
my fstab file is below
vmstat output
View 14 Replies
View Related
Jun 29, 2011
According to Phoronix [URL]... aspm&num=1 (which seems to only test Ubuntu kernels) the problems should affect all users of the affected kernels, including Debian's, but that article provides a fix. I don't remember anyone here mentioning lower battery life and increased heat on their mobile platforms, though.
View 1 Replies
View Related
Mar 21, 2010
I'm very curious about something. I like to use my command line as much as possible. So, most of my work and usage of my computer revolves around the command line. In such a case I could work without having to use any graphical interfaces. My only current limitation is WLAN connection isn't working for me, but that belongs in another thread and something for me to do for now.
My question is, Is it worth it in terms of battery life to work in level 3 when running a laptop on a batter? What sort of extension to the life would one expect?
View 2 Replies
View Related