Berkeley CSUA MOTD:Entry 30119
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2018/12/09 [General] UID:1000 Activity:popular
12/9    

2004/5/9-10 [Computer/Networking, Computer/SW/OS/FreeBSD] UID:30119 Activity:moderate
5/9     Sometimes I need to upload large files on my 1500k/192k aDSL. This
        totally kills my Internet usability. Is there any uber cool BSD/Darwin
        tool that will let me throttle a particular socket? If I could just
        limit my FTP to something like 128k... tnx
        \_ rsync --bwlimit=KBPS ...
        \_ man ipfw
        \_ cstream: http://www.cons.org/cracauer/cstream.html
2018/12/09 [General] UID:1000 Activity:popular
12/9    

You may also be interested in these entries...
2013/8/22-10/28 [Computer/Companies/Yahoo, Industry/SiliconValley] UID:54732 Activity:nil
8/22    http://marketingland.com/yahoo-1-again-not-there-since-early-08-56585
        Y! is back to #1! Marissa, you are SEXY!!!
        \_ how the heck do you only have 225M uniq vis/month when there
           are over 1 billion internet devices out there?
           \_ You think that every single Internet user goes to Y!?
        \_ Tall blonde skinny pasty, not my type at all -former Y!
	...
2013/6/26-8/13 [Computer/SW/WWW/Browsers, Computer/Networking, Computer/Domains] UID:54697 Activity:nil
6/26    This ones for you psb -ausman
        http://25.media.tumblr.com/027fe67c84c2288cc16e9c85db690834/tumblr_mp0ag8DCQI1qzwozco1_1280.jpg
        \- that's pretty good. i wish someone had put the idea to be before i saw
           it on the internet, so see if i'd have put the 9 justices in the same
           boxes. JOHN PAUL STEVENS >> All the sitting justices. --psb
        \- that's pretty good. i wish someone had put the idea to be before i
	...
2012/3/29-6/4 [Computer/HW/Memory, Computer/HW/CPU, Computer/HW/Drives] UID:54351 Activity:nil
3/29    A friend wants a PC (no mac). She doesn't want Dell. Is there a
        good place that can custom build for you (SSD, large RAM, cheap video
        card--no game)?
        \_ As a side note: back in my Cal days more than two decades ago when
           having a 387SX made me the only person with floating-point hardware,
           most machines were custom built.
	...
2012/4/2-6/4 [Computer/SW/Languages/Java, Computer/SW/RevisionControl] UID:54353 Activity:nil
4/02    We use Perforce at work for revision control. It seems to work okay.
        Lately, a lot of the newer developers are saying that Perforce
        sucks and we should switch to Mercurial or Git. I have done some
        searching on the Internet and some others have this opinion. Added
        advantage is that Mercurial and Git are free. However, there would
        be some work to switch for the sysadmins and the developers.
	...
2012/4/26-6/4 [Computer/Networking] UID:54371 Activity:nil
4/26    I see that soda has an ipv6 address but ipv6 traffic from this box
        doesn't actually work (ping6 <DEAD>ipv6.google.com<DEAD>, ping6 http://www.v6.facebook.com
        Is this expected to work?
        \_ Soda doesn't have a real IPv6 address.  The IPv6 addresses you see
           in ifconfig are just link-local addresses; any IPv6-capable machine
           will autogenerate these, whether or not it's connected to an IPv6
	...
2012/1/19-3/3 [Computer/Networking, Politics/Foreign/Europe, Computer/SW] UID:54294 Activity:nil
1/19    Transcript between the Italian cruise ship captain and the Port
        Authority
        http://www.csua.org/u/v9i (abcnews.go.com)
        This captain is amazing.
	...
2011/11/8-30 [Computer/SW/Security, Computer/SW/OS/Windows] UID:54218 Activity:nil
11/8    ObM$Sucks
        http://technet.microsoft.com/en-us/security/bulletin/ms11-083
        \_ How is this different from the hundreds of other M$ security
           vulnerabilities that people have been finding?
           \_ "The vulnerability could allow remote code execution if an
               attacker sends a continuous flow of specially crafted UDP
	...
Cache (5563 bytes)
www.cons.org/cracauer/cstream.html
Links Search: (not public yet) cstream cstream is a general-purpose stream-handling tool like UNIX dd, usually used in commandline-constructed pipes. Timing variance in previous reads are counterbalanced in the following reads. Either at the end of the transmission or everytime SIGUSR1 is received. Reports are done in bytes/sec and if appropriate in KB/sec or MB/sec, where 1K = 1024. These special devices speed varies greatly among operating systems, redirecting from it isn't appropriate benchmarking and a waste of resources anyway. CD quality) 't' = tee - in addition to outfile, copy stream to fd 3 Multiple chars allowed -p <s> = Write pid as ascii integer to file <s> -l include line count in statistics -w <n> = Set write block size (-c 5 only) -S Don't output statistic on SIGINFO SIGINFO causes statistics to be written to stderr SIGUSR1 causes statistics to be written to stderr SIGUSR2 causes loop end after next buffer transfer <file> if -i has not been used, specifies input file Changes in recent versions: Fixed Solaris build problem. If input is just generated, a sine wave of 440 Hz will be played. Full manual page: cstream FreeBSD General Commands Manual cstream NAME cstream - direct data streams, with bandwidth limiting, FIFO, audio, du- plication and extended reporting support. SYNOPSIS cstream -b num -B num -i filename -I string -l -n num -o filename -O string -p filename -t num -v num -V filename DESCRIPTION Cstream filters data streams, much like the UNIX tool dd. It has a more traditional commandline syntax, support for precise bandwidth limit- ing and reporting and support for FIFOs. Data limits and throughput rate calculation will work for files > 4 GB. Cstream reads from the standard input and writes to the standard output, if no filenames are given. Options: -b num Set the block size used for read/write to num. It is an error to set this to anything below the blocksize. Useful when writing tapes and simlilar that prefer few large writes of many small. This is especially useful in combination with the -B option. In combination with a large buffer size this will often load your memory heavily, everytime the reader transfers the buffer it collected to the writer. If you use -c 3 and have a buffer size of 128 Megabytes 256 MB of memory will be touched at once. If the output file name is "-", data will just be discarded. If the input file name is "-", data will be generated 'out of the void'. If these options aren't given, stdin/stout will be used. If you need to give -o or -i options and want stdin/stdout, specify the empty string, like this: cstream -i'' If TCP support has been compiled in (default), hostname:port- number will try to connect to the specified host at the speci- fied port and :portnumber will open a TCP socket on the local machine and wait for a connection to arrive. SECURITY NOTE: cstream includes no mechanism to restrict the hosts that may connect to this port. Unless your machine has other network filters, anyone will be able to connect. If string includes 'a', the file will be assumed to be a opensound-com- patible audio device and will be switched to CD-like set- tings. If string includes 't', a copy of the stream will be sent to file de- scriptor 3. If there is more input available, it will be discarded, cstream will exit after the limit has been reached. If there is less input, the limit will not be reached and no error will be signaled. If cstream uses a seperate writer process (option -c), this is the pid of the parent (reader) process. Limiting is done at the input side, you can rely on cstream not to accept more than this rate. By default, it is set to 0, which means no messages are displayed as long as no errors occur. A value of 1 means that total amount of data and throughput will be displayed at the end of program run. A value of 2 means the transfer rate since the end of the first read/write pair will also be reported (useful when there is an initial delay). A value of 3 means there will also be seperate measurements for read and write. This option is resource-consuming and currently isn't implemented. A value of 4 means that notices about each single read/write will be displayed. SIGUSR1 SIGINFO Sending SIGUSR1 (or SIGINFO, which is usually mappend to Con- trol-T on you keyboard) to cstream causes it to display throughput rates to stderr. SIGHUP I found myself sending SIGHUP accidentially too often. But ig- noring or misusing SIGHUP is not an option for me. Thus, when cstream received SIGHUP, it will wait 5 seconds for another SIGHUP, to give users a chance to correct a possible mistake. If no additional SIGHUP is received, cstream kills itself with SIGHUP. EXAMPLES cstream -o tmpfile -v 1 -n 384m -i - Writes 384 Megabytes of unspecified data to file tmpfile and dis- play verbose throughput rate. Makes a good benchmark, the speed of /dev/null varies too much from system to system. Each time the signal is sent, the throughput and data rate so far will be displayed. This obviously doesn't work when the application tries to write data using mmap and the application has to ignore errors when it tries to set soundcard parameters using ioctl. Exit code 2 means other errors, especially system errors. Bugs There should be an option to begin writing directly after the first read ended and then fill the buffer with reads in the background. Right now writing will not begin before the reader has filled the buffer completely for the first time. SEE ALSO dd, mkfifo HISTORY cstream was initially written by Martin Cracauer in 1998.