Thursday, June 2, 2011

waitqueus in Linux

Nice article on Waitqueue
http://tuxthink.blogspot.com/2011/04/wait-queues.html

Monday, May 23, 2011

power save option in Browser

Just like any embedded device going off-line, will the browser too goes offline, if there is no user action for say for 15 minutes.

This will automatically save power for number of switches / router in between the machine and Webserver as well saving power at both Machine and Webserver too...

Currently any website works based on TCP based and hence there is continuous exchange of packets between website and Webserver.If there is no user action then the browser can go completely offline so that no packet will get exchanged.

Note: there must be provision such that the connection when restored should be able to resume without any issues.

This should not be applicable when downloads are started from a Web Browser.

Sunday, January 30, 2011

Intel(R) HD Graphics in Fedora 13

I have faced issues with Intel HD graphics adapter detection in lenova laptop.

Basically the adapter was not detected properly and it was showing "Unknown monitor" display in fedora 13.

I was able to fix this, by the following steps.

1. Remove the word nomodeset in grub.conf present in /etc directory.

2. move the file xorg.conf present in /etc/X11/ to xorg.conf.backup (basically xorg.conf should no longer be used).

just restart the machine. Now you should be able to change the resolution and the adapter will be detected properly.

Note:
You need this only if you face any issues while starting GUI.
If in case you face any issues with X (GUI)starting properly, restart the machine manually and boot in "single user mode" just undo the above mentioned steps.
for single user mode refer :http://www.fedorafaq.org/basics/#runlevel

Thursday, July 1, 2010

Jitter definition - from wiki

Jitter
Packets from the source will reach the destination with different delays. A packet's delay varies with its position in the queues of the routers along the path between source and destination and this position can vary unpredictably. This variation in delay is known as jitter and can seriously affect the quality of streaming audio and/or video. A network could possibly have zero jitter.
The jitter is basically the latency variation and does not depend on the latency. You can have high response times and a very low jitter. The jitter value is particularly important on network links supporting voice over IP (VoIP) because a high jitter can break a call.

Bandwidth-Delay Product (BDP)

The BDP of a path is the product of the (bottleneck) bandwidth and the delay of the path. Its dimension is "information", because bandwidth (here) expresses information per time, and delay is a time (duration). Typically, one uses bytes as a unit, and it is often useful to think of BDP as the "memory capacity" of a path, i.e. the amount of data that fits entirely into the path (between two end-systems).

BDP is an important parameter for the performance of window-based protocolsTCP. Network paths with a large bandwidth-delay product are called Long Fat Networks or "LFNs". such as


http://kb.pert.geant.net/PERTKB/BandwidthDelayProduct

Saturday, June 12, 2010

script to replace string

#!/bin/bash
echo $PWD
for file in `grep -l "FNDesc" $PWD/*`; do
sed 's/FNDesc/RXDesc/g' $file >/tmp/$$ && mv /tmp/$$ $file
done