Kernel Panic….

Call Trace:  {panic+483}
{_spin_unlock_
irq+12}
       {__down_read+60}
{_spin_lock_irqsave+ 9}
       {__up_read+25}
{blocking_notifier_cal
l_chain+70}
       {do_exit+141} {kernel_math_error+0}
       <ffffffff80270dfc}{do_invalid_op+173}
{:aacraid:aac_intr
_normal+463}
       <fffffff80269ece}{spin_lock_irqsave+9} {printk+82}
       {error_exit+0} {vgacon_cursor+0}
       {:aacraid:aac_intr_normal+473}
{:aacr
aid:aac_intr_normal+473}
       {:aacraid:aac_rx_intr+55}
{handle_IRQ
_event+41}
       {__do_IRQ+154} {do_IRQ+60}
       {ret_from_intr+0} 
(3) astrax:/home/pgperez>
(3) astrax:/home/pgperez> cat error
       {:aacraid:aac_rx_intr+55}
{handle_IRQ_event+41}
       {__do_IRQ+154} {do_IRQ+60}
       {ret_from_intr+0} 

link : https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=205778

bzip2, bunzip2 – a block-sorting file compressor, v1.0.4

Connected From This

A UNIX Command

$wget http://www.kernel.org/pub/linux/kernel/v3.0/patch-3.0.4.bz2
--2011-09-03 19:22:43--  http://www.kernel.org/pub/linux/kernel/v3.0/patch-3.0.4.bz2
Resolving www.kernel.org... 130.239.17.5, 149.20.4.69, 199.6.1.165, ...
Connecting to www.kernel.org|130.239.17.5|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 96120 (94K) [application/x-bzip2]
Saving to: `patch-3.0.4.bz2'

100%[===================================================================================>] 96,120      85.3K/s   in 1.1s

2011-09-03 19:22:45 (85.3 KB/s) - `patch-3.0.4.bz2' saved [96120/96120]

$bunzip2 patch-3.0.4.bz2
$ls patch-3.0.4
patch-3.0.4
$


UNIX Explanation

bzip2  compresses files  using the  Burrows-Wheeler block
sorting text  compression algorithm, and  Huffman coding.
Compression  is generally  considerably better  than that
achieved    by    more    conventional    LZ77/LZ78-based
compressors,  and approaches the  performance of  the PPM
family of statistical compressors.

Related Source Code Exposition


for (t = 0; t < nGroups; t++) {
minLen = 32;
maxLen = 0;
for (i = 0; i len[t][i] > maxLen) maxLen = s->len[t][i];
if (s->len[t][i] len[t][i];
}
BZ2_hbCreateDecodeTables (
&(s->limit[t][0]),
&(s->base[t][0]),
&(s->perm[t][0]),
&(s->len[t][0]),
minLen, maxLen, alphaSize
);
s->minLens[t] = minLen;
}

Source Code Highlight

Create the Huffman decoding tables

Featured Image

Related Knowledge

bzip2  expects a  list  of file  names  to accompany  the
command-line   flags.   Each  file   is  replaced   by  a
compressed   version    of   itself,   with    the   name
"original_name.bz2".  Each  compressed file has  the same
modification  date,   permissions,  and,  when  possible,
ownership  as the corresponding  original, so  that these
properties  can be  correctly  restored at  decompression
time.   File name  handling is  naive in  the  sense that
there is no mechanism for preserving original file names,
permissions,  ownerships or  dates  in filesystems  which
lack  these concepts,  or have  serious file  name length
restrictions, such as MS-DOS.

source : debian manual pages for bzip2

scalar.pl —-x strings

A UNIX Command
$perl scalar.pl
The variable $fred contains Fred here.
Sum is 66.
$cat scalar.pl
$fred = "Fred here";
$barney = 56;
$sum = 10 + $barney;
print 'The variable $fred' . " contains $fred.\n";
print "Sum is $sum.\n";

$cat scalar.pl
$fred = "Fred here";
$barney = 56;
$sum = 10 + $barney;
print 'The variable $fred.' . " contains $fred.\n";
print "Sum is $sum.\n";

$perl scalar.pl
The variable $fred. contains Fred here.
Sum is 66.
$cat scalar.pl
$fred = "Fred here";
$barney = 56;
$sum = 10 + $barney;
print "The variable $fred." . " contains $fred.\n";
print "Sum is $sum.\n";

$perl scalar.pl
The variable Fred here. contains Fred here.
Sum is 66.
$

UNIX Explanation
Various operations on scalar (string) variables.

source: http://sandbox.mc.edu/~bennet/perl/leccode/var1_pl.html

HTTP – Hypertext Transfer Protocol

Connected From This

HTTP

The   Hypertext   Transfer    Protocol   (HTTP)   is   an
application-level      protocol      for     distributed,
collaborative,  hypermedia information  systems. It  is a
generic, stateless,  protocol which can be  used for many
tasks beyond its use  for hypertext, such as name servers
and   distributed  object  management   systems,  through
extension  of  its   request  methods,  error  codes  and
headers. A feature of  HTTP is the typing and negotiation
of  data  representation, allowing  systems  to be  built
independently of the data being transferred.

source : http://www.w3.org/Protocols/Specs.html

httperf – HTTP performance measurement tool

Connected From This

A UNIX Command
$httperf --hog --server www.youtube.com
httperf --hog --client=0/1 --server=www.youtube.com --port=80 --uri=/ --send-buffer=4096 --recv-buffer=16384 --num-conns=1 --num-calls=1
Maximum connect burst length: 0

Total: connections 1 requests 1 replies 1 test-duration 0.787 s

Connection rate: 1.3 conn/s (787.4 ms/conn, <=1 concurrent connections)
Connection time [ms]: min 787.4 avg 787.4 max 787.4 median 787.5 stddev 0.0
Connection time [ms]: connect 33.0
Connection length [replies/conn]: 1.000

Request rate: 1.3 req/s (787.4 ms/req)
Request size [B]: 68.0

Reply rate [replies/s]: min 0.0 avg 0.0 max 0.0 stddev 0.0 (0 samples)
Reply time [ms]: response 326.2 transfer 428.2
Reply size [B]: header 576.0 content 114914.0 footer 2.0 (total 115492.0)
Reply status: 1xx=0 2xx=1 3xx=0 4xx=0 5xx=0

CPU time [s]: user 0.32 system 0.16 (user 40.1% system 19.8% total 59.9%)
Net I/O: 143.3 KB/s (1.2*10^6 bps)

Errors: total 0 client-timo 0 socket-timo 0 connrefused 0 connreset 0
Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0
$

$httperf --hog --server www.beautifulwork.org
httperf --hog --client=0/1 --server=www.beautifulwork.org --port=80 --uri=/ --send-buffer=4096 --recv-buffer=16384 --num-conns=1 --num-calls=1
Maximum connect burst length: 0

Total: connections 1 requests 1 replies 1 test-duration 0.818 s

Connection rate: 1.2 conn/s (818.4 ms/conn, <=1 concurrent connections)
Connection time [ms]: min 818.4 avg 818.4 max 818.4 median 818.5 stddev 0.0
Connection time [ms]: connect 60.2
Connection length [replies/conn]: 1.000

Request rate: 1.2 req/s (818.4 ms/req)
Request size [B]: 74.0

Reply rate [replies/s]: min 0.0 avg 0.0 max 0.0 stddev 0.0 (0 samples)
Reply time [ms]: response 322.8 transfer 435.5
Reply size [B]: header 338.0 content 40114.0 footer 2.0 (total 40454.0)
Reply status: 1xx=0 2xx=1 3xx=0 4xx=0 5xx=0

CPU time [s]: user 0.34 system 0.18 (user 42.0% system 21.5% total 63.5%)
Net I/O: 48.4 KB/s (0.4*10^6 bps)

Errors: total 0 client-timo 0 socket-timo 0 connrefused 0 connreset 0
Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0
$

UNIX Explanation
httperf is a tool  to measure web server performance.  It
speaks  the  HTTP  protocol  both  in  its  HTTP/1.0  and
HTTP/1.1  flavors  and   offers  a  variety  of  workload
generators.  While running, it keeps track of a number of
performance metrics  that are  summarized in the  form of
statistics that  are printed  at the end  of a  test run.
The  most basic  operation of  httperf is  to  generate a
fixed number of HTTP GET requests and to measure how many
replies (responses) came back from the server and at what
rate the responses arrived.

ASP.NET and Debian HOWTO

Installation
1. apt-get install apache2
2. apt-get install libapache2-mod-perl2
3. apt-get install libapache2-mod-mono

configuration
1. /etc/apache2/sites-available/
2. a2ensite default
3. mkdir -p /srv/www/default/public_html
4. mkdir /srv/www/default/logs
5. put a sample .aspx file in "/srv/www/default/public_html"
6. /etc/init.d/apache2 restart

Testing
1. Browser URL --- 127.0.0.1/<your .aspx file>