Tag Info

Hot answers tagged

29

I would assume most distros accept individual private donations (they may also accept free hosting). However, that is probably not the bulk of their financing in most cases. Note that some of the major distros may have some paid staff, and possibly also office space, the cost of which likely exceeds that of hosting the repos1. This should not be taken to ...


19

Usually each Linux distro has a few central servers were they put directly all the packages. But there exists mirrors arround the world that have copies of these packages. These mirrors comunicate directly with the central servers looking for updates periodically. Normally there is a delay in the release of an update between this central servers and the ...


15

You can throttle the network bandwidth on the interface using the command called tc Man page available at http://linux.die.net/man/8/tc A useful script is found at http://atmail.com/kb/2009/throttling-bandwidth/ Or for more simple, use wondershaper: http://jwalanta.blogspot.com/2009/04/easy-bandwidth-shaping-in-linux.html


14

Have a look at trickle a userspace bandwidth shaper. Just start your shell with trickle and specify the speed, e.g.: trickle -d 100 zsh which tries to limit the download speed to 100KB/s for all programs launched inside this shell. As trickle uses LD_PRELOAD this won't work with static linked programs but this isn't a problem for most programs.


13

One option that I just discovered is to use trickle. trickle is a portable lightweight userspace bandwidth shaper. It can run in collaborative mode (together with trickled) or in stand alone mode. trickle works by taking advantage of the unix loader preloading. Essentially it provides, to the application, a new version of the functionality ...


8

tc (traffic control), from the iproute2 suite. See the Linux Advanced Routing & Traffic Control HOWTO – notably, the queuing section – and netem for help.


8

There are several tools that can do this. Bmon One that should be in most repositories for various distros is bmon.      It can be run in a condensed view too.             If you're looking for something else I'd suggest taking a look at this Linuxaria article titled: Monitor ...


7

If you can write to a pipe (or stdout), you can install the pv (pipe viewer) command. It was originally written to display the progress of data transferred through a pipe. tar cvf - /files/to/backup | pv -L 512k > /your/file/on/sshfs -L RATE, --rate-limit RATE Limit the transfer to a maximum of RATE bytes per second. A suffix ...


6

First, the easy way: rsync has a --bwlimit parameter. That's a constant rate, but you can use that to easily throttle it down. Now, if you want the adaptive rate, there is the linux traffic control framework, which is actually fairly complicated. There are several references I'm aware of: Linux Advanced Routing & Traffic Control Traffic Control HOWTO ...


6

I'm going to have to be cheap and copy my answer from this question. ntop is probably the best solution for doing this. It is designed to run long term and capture exactly what youre looking for. It can show you which clients are receiving/sending the most traffic, where theyre recieving/sending to, what protocols and ports are being used etc. It then uses ...


6

You know you already have that with ifconfig right? Ifconfig keeps counters about your incomming and outgoing bandwidth on each interface by default. Usually you can't reset counters except rebooting (with a few exceptions) From console you can easily leave a cron running each three days and saving results to a file for later check. Something like this: ...


6

I'd double check this but this article lists this as one of drawbacks to using Trickle. The lack of the feature to dynamically change the limits. excerpt from article - Control your bandwidth with Trickle My biggest concern with Trickle is that it can't dynamically adjust set speeds. So, if you set the upload rates at 20kbps for Firefox, but later ...


5

ntop can give you exactly what you're asking for. It collects data about all the traffic flowing through your network (and can collect data from other networks if they have a device configured to send netfow data to your system). It will show you every host on the network, with how much bandwidth they've used. It will let you drill down into each host and ...


5

I believe it depends on how fast you ping the server: If it's one ping per second (or even slightly faster), they will most likely not care. If it's much faster, they may consider it a DDOS attack by ping flood. It's especially the case if you don't wait for the previous answer before sending the next ping. It reminds me of the kids who brought Yahoo!, ...


5

NetHogs is the best tool I have found so far that fulfills my need, but sadly needs to be run as root. (via)


5

Limiting network resources based on some criterias is the subject of QoS. There are several different ways to control user traffic on Linux systems. There is a good How-to about advanced routing techniques and traffic control on Linux by Bert Hubert.


5

I believe what you're trying to accomplish is probably best (and AFAIK only) possible combining multiple commands as you're currently doing. With some clever shell scripting and piped data, you could get the output you're looking for. You seem to be up against some tenants of 'The UNIX Philosophy:' Make each program do one thing well. To do a new ...


4

Most of the time big company like Intel IBM AMD ... If you look at Ubuntu that's the canonical company that handle the bandwidth. For source forge lots of universities offers bandwidth and once again big company like phone operators (free in France for example). Centos gives a list of bandwidth sponsor on this page http://www.centos.org/download/mirrors/ ...


4

With regard to Debian, companies using Debian donate servers and bandwidth. I think the Project also uses monetary donations to purchase hardware, particularly specialist hardware. You can find discussions of this on the Debian mailing lists. However, I've never heard of Debian paying for bandwidth. Presumably they can find enough ISPs to let them use ...


3

I'm just repeating the answers listed on this (deleted?) stackoverflow question: http://stackoverflow.com/questions/426272/how-to-test-internet-connection-speed-from-command-line k2z: wget --output-document=/dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip or git clone https://github.com/sivel/speedtest-cli cd speedtest-cli ...


3

ttcp is a simple, possibly too simple, speed test utility. pchar is another one people cite a lot, I've had bad luck with it, personally. Here's how I'd use ttcp. You need two machines, each with ttcp (http://playground.sun.com/pub/tcp-impl/ttcp/ttcp.c) compiled on them. HostA % ./ttcp -r -s -p 9401 ... HostB % ./ttcp -s -p 9401 < /boot/vmlinuz ...


3

You might be interested in TeSpeed. It is described as: If you are looking for tool that is able to test internet connection speed fron Linux terminal, you have found it! :) TeSpeed uses speedtest.net servers to check upload and download rate and it puts that information on charts. http://tespeed.sourceforge.net/


3

If you are looking for a network monitor that runs as an external process and can provide per-connection statistics on the number of transferred bytes, then IPTraf can do that. Take a look at the example screenshots, especially the TCP/UDP statistical breakdown.


3

If I've understood correctly, you're trying to limit your ingress traffic from your ISP by limiting egress traffic on your locally facing interface. The packet loss you're seeing are probably to be expected, as dropped packets are (one of) TCPs way(s) of detecting congestion, and the way a router can signal congestion. It's also the only reasonable way your ...


2

I can answer how to manage the bandwidth once you know what IP is in which group. You can use hierarchical token bucket to allocate three groups. 10 Group A 20 Group B 30 Unknown traffic for/from non-AD devices in your network #Create egress shaping $TC qdisc add dev eth0 root handle 1: htb default 20 r2q 50 $TC class add dev eth0 parent 1: classid 1:1 ...


2

If you're satisfied with general I/O bandwidth used (or if your program does almost entirely network I/O), then you could watch the /proc/<pid>/io file. You want the rchar and wchar fields. You might want to subtract read_bytes and write_bytes, since they represent reads and writes to the storage layer. See section 3.3 of ...


2

Your test probably isn't long enough to average out the overhead of running cp, so I don't know if that's a good test. You might want to try something like bonnie++. Still, the number you came up with doesn't seem unreasonable to me. If memtest86+ is to be believed, most systems with dual-channel RAM will do 2-3GB/s to main memory. Single-channel (as you ...


2

try nethogs: NetHogs is a small 'net top' tool. Instead of breaking the traffic down per protocol or per subnet, like most tools do, it groups bandwidth by process. NetHogs does not rely on a special kernel module to be loaded. If there's suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is causing this. This makes it ...


2

Well, unfortunately I haven't found a simple way to do this otherwise I would give you some examples; however, the tc command will do what you need. Tc is a traffic shaping utility that is built into the Linux kernel. Be prepared, it isn't for the faint of heart. I recommend doing a good bit of reading about the queuing disciplines before starting. At the ...


2

How are you transferring the data? (rsync over ssh? scp? sftp? something else?) rsync will allow you to limit bandwidth (see the option --bwlimit=KBPS). rsync -e ssh --bwlimit .. Alternatively, you could setup a qdisc or equivalent to do fancy rate limiting, but I suspect that in your case this would be severe overkill. Documentation on this is available ...



Only top voted, non community-wiki answers of a minimum length are eligible