Programming :: How To Get Bandwith Usage?
Jan 12, 2009
i am programming to get a real number to show real-time system bandwidth used ? that mean the bandwidth used at the time my fuction running? am using C language to do that. so help me please!
View 4 Replies
ADVERTISEMENT
Feb 27, 2010
We are using RHEL4 AS U5 and Sendmail version sendmail-8.13.8. How to find out total mail transfer size (month basis) through Sendmail service. Is it possible in linux.
View 1 Replies
View Related
Jan 7, 2011
I have a webserver with a few users on and i wonder how i can limit the bandwith usage for each user on my server ?
View 1 Replies
View Related
Mar 7, 2011
I'm using mint 10 - ubuntu 10 derivative. I'm a programmer with 10 years experience with linux comfortable (but not a genius) with the command line. Adept with vim. My security knowledge is woefully low.
My bandwith usage has gone way up. To make a long story short, I am suspecting an intrusion of some sort on my machine. Currently I'm using a router with wireless turned off. I'm running iftop and the Rx total for today (still high) is showing 333MB.
For starters, I have two questions:
1)What should I be looking for in /var/log?
2)Any recommendations on software that might help here?
View 14 Replies
View Related
Feb 25, 2010
i recently installed ipplan on my server .. but cuz i am new at it i am nt any good . is there some way i can read or refer some book or website and learn all its functionalities ??
1. how do i create a new dns and assign bandwith to it ?
2. how do i assign bandwith to a specific ip in general ?
View 3 Replies
View Related
Feb 21, 2011
I have 2 ISP where give me IP Public with ISP A (/29) and ISP B (/28). So, I connect this two ISP to unmanaged switch. And from that switch, I take one cable connected to eth0 on the server. (Note : My server have 2 dev ethernet, eth0 and eth1). eth1 will go to the Switch which will go to the LAN.
My Question is : 1. Is this possible to make bandwith control on the gateway server with mode separating International bandwith and local bandwith (my country bandwith)? ie, for my Mail Server I will give the "intl bandwith" only 512 kpbs and for local bandwith with 1Mbps. What a software can I use for this model ?
2. Which model I should to used, with NAT or with Bridging router? That's all for now..
View 5 Replies
View Related
Oct 18, 2010
We are using squid deplay pools successfully in our lan and it is working very fine but now i want each computer bandwidth to be shaped for each port means that whenever the user make ftp connection with ftp software or whenever the user access outlook express for email each port like smtp,ftp,remote desktop connection will be shaped or otherwords each pc will get fixed bandwidth.
Our Broaband having 1Mbps connection and we have 16 user who access the internet so i want the 1Mbps will distribute in each user. Our Six Users of internet is our directors and managers of the company so i want to give them max speed and 10 users will get low speed.
Six Special users Ip address: 192.168.1.3 to 192.168.1.9. Other Regular users Ip Address: 192.168.1.10 to 192.168.1.20.
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
Jan 13, 2010
Im a fresher in PHP.Actually i wanted to know that whether there will be time delay while using session variables in PHP.By using some 10-20 session variables in my code will it affect the speed of the loading of the page.If so then can u suuggest any other method to pass the varaibles which will not slow down the speed?
View 4 Replies
View Related
Mar 26, 2010
I am trying to get the total file size for certain files per directory.I am usingfind `pwd` /DirectoryPath -name '*.dta' -exec ls -l {} ; | awk '{ print $NF ": " $5 }' > /users/cergun/My Documents/dtafiles.txtbut this lists all the files in the directoriesI need the total per directory for all dta files.
View 1 Replies
View Related
Feb 8, 2011
I had a look at the Spotify C API, and found that they were using the following code to output music from Spotify: snd_pcm_open(&h, dev, SND_PCM_STREAM_PLAYBACK, 0).
I want use this function instead: int _snd_pcm_file_open(snd_pcm_t **pcmp, const char *name, snd_config_t *root, snd_config_t *conf, snd_pcm_stream_t stream, int mode)The function is found here: http://www.alsa-project.org/alsa-doc...92e16f8abdc60a I'm not able to find anything in the documentation explaining what the two parameters snd_config_t *root and snd_config_t *conf is. What I'm trying to achieve is to write the stream to a file, and then read it from another application. But it would be even better if I could get the stream returned directly from the C application.
View 1 Replies
View Related
Mar 18, 2010
I do not understand bash' syntax regarding the use of ((<arithmetic expression>)). $((<arithmetic expression>)) is tokenised to a single word. OK.
Code:
In isolation
Code:
It may not be used where a word is expected. This generates a syntax error. Why?
Code:
View 6 Replies
View Related
Mar 7, 2011
I have a vector of bytes that I need to store in a DB2 database and was wanting to do it with a column declared as VARCHAR () FOR BIT DATA. I can do this with no problem except when a byte representing the NULL character occurs in the vector. Anytime this occurs, the rest of the bytes are truncated. I know this is the proper behavior for if this were a string, but I was under the impression that if the column is declared as I previously mentioned, that this would support any variable length binary data including the NULL character.
I've found repeated references to people dealing with DB2 tables where the data in VARCHAR columns contained leading and embedded NULLS, so I know this is possible. Can anyone provide me with the proper INSERT statement in order to get this to work? This is the current BindParameters call I'm making for the VARCHAR () FOR BIT DATA column that's truncating after the NULL character occurs.
Code:
SQLBindParameter(handleStmt, 3, SQL_PARAM_INPUT, SQL_C_CHAR,
SQL_VARCHAR, (SQLUINTEGER)(30000), 0, data2, 30000,
&sqlNts);
View 1 Replies
View Related
Jun 10, 2009
I'm using vmsplice & splice to send memory buffers through a TCP socket. I have two issues using these methods:
1) According to the documentation, when using vmsplice with the flag SPLICE_F_GIFT, you cannot modify the buffer you've "given" the kernel. Currently, each time I want to send a buffer, I have to allocate a page-aligned buffer (fill it with data) and send it using vmsplice- splice. When can I deallocate this buffer? Is it possible to modify this buffer after the buffer is sent through the socket?
2) The buffer should be page-aligned both in memory and in length, but most of the time the sent messages (to the TCP socket) - are smaller than a page size - is it possible to "clear" the pipe from the remaining buffer?
View 1 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
Dec 10, 2010
I'm running into a problem where my system is running out of disk space on the root partition, but I can't figure out where the runaway usage is. I've had a stable system for a couple of years now, and it just ran out of space. I cleaned some files up to get the system workable again, but can't find the big usage area, and I'm getting conflicting results.For example, when I do a df it says I'm using 44GB out of 58 GB:
Code:
[root@Zion ~]# df -h
Filesystem Size Used Avail Use% Mounted on
[code]....
View 5 Replies
View Related
Nov 15, 2010
Is 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 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 24, 2010
How do I find out the network usage ie the total amount of data is transferred in or out of my computer (openSUSE 11.2 and gnome) and keep a track of the total network usage?
View 1 Replies
View Related
Jul 19, 2011
I am running 10.10 on a netbook (1.6Ghz Atom N270, 2GB RAM). Because it has limited resources, I am currently testing to see which apps I want to use.
Which should take more priority -- an application that uses less RAM or an application that uses less CPU?
View 2 Replies
View Related
Nov 23, 2009
I recently installed Fedora 12 x64 on my laptop. Whenever I check "system monitor" the CPU usage is always 10% whether it is split between the two cores or done all on one. It keeps the CPU at 37degrees Celsius (body temp). I disabled crond from starting (I think it is similar to scheduled task in MS Windows), IP6Tables, sendmail, and smolt.
"System Monitor" tells me that only it itself is using 2%cpu but everything else is using 0%. If it makes any difference, I didn't install the ATI drivers because after installing the drivers, Fedora never gets past the boot screen. However, I read the instruction manual and it said that after installing you must run some configuration utility. I never did that so I will try that again on the weekend.
View 7 Replies
View Related
Jan 8, 2010
are there any way/method or program to keep cpu usage low? like only allow a certain program to use a certain amount of cpu usage (like 30%)
if so my laptop might stay cool all time (thought the waiting time will be up)
i need that method because i am not in hurry and dont want/need to burn my laptop.
View 2 Replies
View Related
Jul 22, 2010
I have this HQ mkv video file, when I play it with mplayer it plays bit slow with small freezes, mplayer gives an "YOUR COMPUTER IS TOO SLOW" error.
The problem is conky shows that it only uses %50 CPU and there a %40 more free which it doesn't uses.
Why does this happen? How can I make it use the other %50. How bad is the idea of running it as root?
View 2 Replies
View Related
Jun 14, 2010
I'd like to get cpu usage for my program which is related with xen hypervisor.
and i could find some.. from
/proc/stat
vmstat
system information on x-window
and virt-manager
but i found that every program shows different information of cpu usage.
View 3 Replies
View Related
May 5, 2010
I decided to upgrade my laptop from Ubuntu 9.10 to 10.04. Instead of using the upgrade feature, I backed up the important stuff and just did a clean install of 10.04. Issue 1: I was experiencing some performance issues with 10.04. I was getting 100% cpu usage reported by System Monitor. The 100% cpu usage, strangely enough, switched from CPU0 to CPU1, and back again sometimes. I don't know if there was a pattern to it. I also noticed video lag when using Super+E (or Window+E) to switch between desktops. This was running incredibly smooth on this laptop when I was using 9.10. I know it's just a minor issue, but the video in the laptop is more than powerful enough to handle it, and I'm worried about the performance having a bottleneck of some kind.
Issue 2: Trying to fix issue 1, I was googling around to find a solution. I found a thread on another site that suggested running a couple terminal commands to do something with Pulseaudio, I think. I wasn't familiar with the commands, as my Linux knowledge doesn't stray far from my generic list of fixes for things I've encountered. Here are the commands I ran:
sudo add-apt-repository ppa:ubuntu-audio-dev/ppa
sudo apt-get update && sudo apt-get dist-upgrade
There may have been a couple other steps, however I cannot find the page anymore My sound still works, but I cannot control the volume with the icon in the system tray anymore. I had to download the Alsa Gui volume control to adjust the volume. My hopes for this thread: I would like to first know if anyone possibly understands what I may have done with Issue 2 (the sound issue)
And with Issue 1, have there been any reported performance bugs? 10.04 seems to run fine on my desktop, super smooth (including Window+E desktop switching). EDIT: I forgot to mention that the processes tab in System Monitor does not show any applications that are coming anywhere near the 100% cpu usage that the Resources tab is reporting.
View 9 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
Aug 19, 2010
My CPU usage on Ubuntu 10.04 frequently rises up to 100 % and stays there. What can I do to fix this?
View 4 Replies
View Related
Oct 22, 2010
Where did the option of "Encrypt.." from the right-click menu go in 10.04?When I was on 9.10, I could just right-click a file/folder and select to encrypt with a GPG key.. How do i do this with 10.04?
View 1 Replies
View Related