Kernel choking, process killed. A flashback from 90s :)

[188144.606276] lowmem_reserve[]: 0 3255 8053 8053
[188144.606288] DMA32 free:24252kB min:4636kB low:5792kB high:6952kB active_anon:2755804kB inactive_anon:350564kB active_file:736kB inactive_file:380kB unevictable:0kB present:3334048kB pages_scanned:288 all_unreclaimable? no
[188144.606295] lowmem_reserve[]: 0 0 4797 4797
[188144.606306] Normal free:7368kB min:6832kB low:8540kB high:10248kB active_anon:4094700kB inactive_anon:682632kB active_file:1520kB inactive_file:1148kB unevictable:0kB present:4912640kB pages_scanned:1120 all_unreclaimable? no
[188144.606313] lowmem_reserve[]: 0 0 0 0
[188144.606319] DMA: 4*4kB 2*8kB 2*16kB 2*32kB 2*64kB 2*128kB 0*256kB 0*512kB 1*1024kB 1*2048kB 3*4096kB = 15872kB
[188144.606336] DMA32: 4042*4kB 2*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 2*4096kB = 24376kB
[188144.606352] Normal: 781*4kB 3*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 1*4096kB = 7244kB
[188144.606368] 1337 total pagecache pages
[188144.606371] 0 pages in swap cache
[188144.606375] Swap cache stats: add 0, delete 0, find 0/0
[188144.606378] Free swap = 0kB
[188144.606381] Total swap = 0kB
[188144.658873] 2097136 pages RAM
[188144.658878] 59457 pages reserved
[188144.658881] 5356 pages shared
[188144.658883] 2021527 pages non-shared
[188144.658889] Out of memory: kill process 4574 (bash) score 40435 or a child
[188144.658929] Killed process 5193 (ipython)

Its ages since I have seen something similar. And imagine that this machine has 8Gbyte of RAM and 16Gbyte of swap :O

Update

Now I noticed that the swap was offline…. poor me :S

It’s been a while…

It nearly two months since I last wrote anything in my space (this one i mean :P), so I guess it’s time to update the few fellas that follow me electronically.

Not long ago, i was introduced into indifex, a company specializing into scalable content distribution technologies. I joined that fellowship and currently I am intrigued by its merits. First of all I got acquainted with django [1] which is a web design/implementation framework written in python. I really like python so this is, in principle, cool!

In the past few weeks every day is a new challenge workingwith something unique and ultra nice. For instance in the previous week I got involved with rabbitmq[2] and celery[3]. Rabbitmq is a distributed queueing system implementing AMQP protocol [4] (other cool servers are zeromq[5] - a really good comparison based on hard facts among them can be found here [6]) Celery on the other hand is a distributed task queue, designed -at first- for django projects. It is used for executing tasks asynchronously, routed to one or more worker servers on the same or distinct machine(s), running concurrently using multiprocessing on each one of them.

Another challenging task I faced was the overall design of the web services of transifex.net, using bleeding edge performance targeting applications like haproxy[7], nginx[8]. On this design many questions and objections were raised against the proposed design, but after all the architectural superiority prevailed and stayed.

Soon I will update with  the cloud (amazon ec2 and rackspace cloud) experience :)

Lost in space

It’s been a while since I wrote something in this blog, I know, but I am coping to finish my M.Sc. diploma thesis so, it gonna be a while until the next time. So far there are 11-12 articles unpublished semi-finished about various issues hell I even wrote about the new acropolis museum but still

I ll be back (soon I hope)

PS I exceeded 170pages in my thesis and still have an enormous amount of topics to cover  :lol:

sunfire 480R and linux

This is a quick blog post in order to set things straight. Though all major results from google pointing to the contrary (that linux is uninstallable on a sparc machine) these days I came to a fully functional 480 server while using gentoo sparc autobuilds. Other linux distros (debian,redhat,centos,suse) could not even boot the machine :S

So gentoo is your friend.

If for any reason anyone is intrested on the specifics of the “operation” please write a follow up :D

LanParty and Artware @ Upatras

All the good stuff in upatras happen by individuals offering services and organizing events on their own. In the upcoming weekend 22-23-24 / 5 /2009 two major events will take place in the upatras campus.

escape lanparty

First and most important is the Escape Lanparty v5.2 [1] . Although this is an event for geeks and hardcore gamers, it seems , that it will draw a lot of attention over the student corpus. Many PWMN members will join the party as well (estimated numbers are 20-25 people of the pwmn community attending of the 200 available seats so this will be at least 10% of the attendants) Prepare your shares :twisted: This event will take place on the students dormitories hall[2] so be prepared to rock.

artware

The second event is the artware[3], a mixture of artistic creation on various fields i.e. music, drawing, etc and will take place [4] in the computer engineering department.

I hopefully will attend both in a time sharing basis, so I will keep you informed. Of course you can get informed yourself by attending either or both of the events.

Cheers :D

kOlga back online

as promised and within the 16hours deadline the kOlga is back online. The new feature set installation (hotspot, gardenwall, red queueing on all interfaces, etc) is postoponed for the future.

Enjoy the beautiful saturday and the weekend :mrgreen:

PS1. The tzikis link was decommissioned due to poor performance (4mbps up 4mbps down) but may be brought back if noone else provides a link for him.

PS2. To the guy that broadcasts in southwest patra region with mac address : 00:0B:6B:09:F2:7E and hidden SSID @ 5180Mhz please contact me if you interested for a link. My scans indicate a very good signal from your side (-55dbi with SNR of 50db)

The funniest configure message I’ve ever read :)


...
configure: Using system-installed FFMpeg code
configure: WARNING:
======================================================================
WARNING: you have chosen to build gst-ffmpeg against a random
external version of ffmpeg instead of building it against the tested
internal ffmpeg snapshot that is included with gst-ffmpeg.


This is a very bad idea. So bad in fact that words cannot express
just how bad it is. Suffice to say that it is BAD.


The GStreamer developers cannot and will not support a gst-ffmpeg
built this way. Any bug reports that indicate there is an external
version of ffmpeg involved will be closed immediately without further
investigation.

The reason such a setup can't be supported is that the ffmpeg API
and ABI is in constant flux, yet there aren't any official releases
of the ffmpeg library to develop against. This makes it impossible
to guarantee that gst-ffmpeg will work reliably, or even compile,
with a randomly picked version ffmpeg. Even if gst-ffmpeg compiles
and superficially appears to work fine against your chosen external
ffmpeg version, that might just not be the case on other systems, or
even the same system at a later time, or when using decoders,
encoders, demuxers or muxers that have not been tested.

Please do not create or distribute binary packages of gst-ffmpeg
that link against an external ffmpeg. Thank you!
======================================================================


checking for sed... /bin/sed
...

LOL that’s what I call programmers with humor :twisted: And of course build succeeds and ffmpeg packages works alright :D

0×0B things I love in netbeans

oh yeah this is a “I love netbeans” post!

In general NetBeans is quite similar to most other IDEs; you get a project view on the left, an outline of the things in the current file under that, an editor on the right, a task/problem view below the editor, and some properties ron the right to the editor. It does all the usual tricks you’d expect, like tabs in the editor, syntax highlight, code assist etc.

The reason I choose netbeans as my dev platform/IDE some time ago was mainly its java support, and for sometime I used it just for java. As time passed by I intergrated every single project in every kind of wierd language in netbeans.

  1. Free/Open Source, hell yeah the swiss army knife for the poor programmers
  2. Cool-intelligent auto completionm, for the bored programmer. It can definitely save you some keystrokes!
  3. Generates UML diagrams (reverse engineering). Cool when some weirdo requires you to provide them in some stupid report
  4. Cool Testing features (i.e. junit intergration for java, profiling etc). NO MORE System.out.println("Var IHateDebugging="+IHateDebugging); Cheers
  5. Many languages supported (Currently: java,C/C++,python,ruby,php, etc - hell I’ve even inline assembly in C projects)
  6. Multiple Revision control systems support (mercurial,cvs,svn, you can even find a git module). Auto diffing, auto patch creation. Saves you keystrokes, saves you alt-tabbing (which is also a keystroke)
  7. Refactoring (When you are bored and you create a variable with name SusanIsABitch because susan (your boss) forced you to add the z irrelevant feature and next morning requests the patch to review it, you can easily hide the hatre. (TIP of the day: remember not to commit SusanIsABitch part of your code)
  8. Swing gui builder. Which kid doesn’t like this? And which kiddo doesn’t appriciate this? I tell you the ungrateful bastards are the ones who haven’t created a GUI application by hand (i.e. creating all the components not by an IDE but by coding them each single one of them)
  9. AutoFix (i.e. when missing an import statement in java code netbeans automatically inserts the import statement, cool huh?)
  10. Local Revision control System! If this ain’t cool then tell me what is! When the stupid project manager assigns you a task but he is so lame that cannot create an rcs account then netbeans is your friend. And this Feature ROCKS MY WORLD!
  11. In some cases It is better than language dedicated IDEs like ZEND (when you write ugly php -php mixed with html- then netbeans gives you a great html tag editor verificator, and checker! Hell yeah if only netbeans could wash my clothes too!)

As a conclusion; If you want to spend less time coding producing the same or somewhat better code, quit reading my shit and go grab a version of netbeans. It’s frakin’ free! As an easter egg remember that netbeans may have another cool feature waiting just for you to discover!

search engines, irc bots and python

It sounds like an intriguing combination, doesn’t it?

A while ago a pwmn’s intranet web search service was provided [the announcement was made here]. The application providing the service is yacy [1], which might be a bit immature, but was choosen for its future scalability (wifi link with awmn[2] is on the verge and new nodes in between peloponesse and central greece are emerging [3][4][5][6][7]). So the distributed application seemed great idea.

So far the whole service is based in out of stock yacy distribution with the tampering of some configuration files ( defaults/yacy.init , defaults/yacy.network.group ) and the addition of some more ( defaults/yacy.network.pwmn.unit ). The whole idea is to run some sort of the yacy’s freeworld (now named PWMN) over the wireless wifi given the principle of locality[8].

The service had good response among people and some started using in various ways. It was time to bring it closer to the masses and to make it accessible through our number one instant messaging protocol which is no other than irc [9]. The task was to provide itmy’s[10] python irc bot[11][12] with some “API” in order to communicate with the yacy search engine. Since the bot was written in python the easiest way to bind these things was the “glue” application between the bot and the search engine was through the python language. Here I have to say that even though I’m a newbie python programmer I continue using it, in favour of other languages that I prefer more. I guess the main reason is that its learning curve is GoDLiKe!

The following code is quite dumb. Since yacy 0.77stable the developers of yacy provide an xml compliant output (in contrast to html parsing currently done, so many of the following code needs rewritting [13], to eliminate the usage of mechanize in favour of urllib2 and some beautification on the tag parsing of the xml file - currently I’m parsing the html output of www server, so I consider the current version to be totally UGLY :twisted: ). Download the source code from  here  and enjoy

the sound of silence

an unplugged version with dylan :D

enjoy

Hello darkness, my old friend,
Ive come to talk with you again,
Because a vision softly creeping,
Left its seeds while I was sleeping,
And the vision that was planted in my brain
Still remains
Within the sound of silence.

In restless dreams I walked alone
Narrow streets of cobblestone,
neath the halo of a street lamp,
I turned my collar to the cold and damp
When my eyes were stabbed by the flash of
A neon light
That split the night
And touched the sound of silence.

And in the naked light I saw
Ten thousand people, maybe more.
People talking without speaking,
People hearing without listening,
People writing songs that voices never share
And no one deared
Disturb the sound of silence.

Fools said i,you do not know
Silence like a cancer grows.
Hear my words that I might teach you,
Take my arms that I might reach to you.
But my words like silent raindrops fell,
And echoed
In the wells of silence

And the people bowed and prayed
To the neon God they made.
And the sign flashed its warning,
In the words that it was forming.
And the signs said, the words of the prophets
Are written on the subway walls
And tenement halls.
And whisperd in the sounds of silence.