Links
Tags
apache
armenia
books
bsd
c
c++
chips
cinema
concurrency
cooking
database
dragonfly
erlang
filesystem
freebsd
fun
hardware
java
javascript
json
languages
linux
lyric
mac_osx
mail
math
misc
music
personal
poems
presentation
programming
python
references
ruby
rubyjs
scm
software
spiking_neural_net
study
sysadm
sysarch
technology
testing
travel
virtualization
web
wee
windows
On Linux with the ext2 or ext3 file system you better not store more than 31998 directories in a directory. The same probably applies to files as well. Try this:
Dir.mkdir("dir")
33000.times {|i| Dir.mkdir("dir/#{i}") }
What I get on a Linux box is:
dir.rb:3:in `mkdir': Too many links - dir/31998 (Errno::EMLINK)
On FreeBSD using the default ufs2 there seems to be no limit. I tried 200_000 directories and it worked like a charm. Just don’t try to ls it :).
Why is this important? Because the crawler I am working on has crawled a little more than 33000 domains and now gets in trouble! I want a FreeBSD box!
Feed for a BSD daemon. The first page of this lecture about logics contains a cartoon I really like. A penguin says
Penguins are black and white.
Some old TV shows are black and white.
Therefore some penguins are old TV shows.
followed by a statement
Logic: Another thing that penguins aren't very good at.
Seit Sonntag läuft bei mir Ubutu Linux auf meinem “alten” Laptop. In dieser kurzen Zeit ist er jedoch schon bestimmt 5 mal abgestürzt. Einfach so! Unter FreeBSD kannte ich das eigentlich nur, wenn ich irgendein USB Device eingestöpselt habe und nicht einfach so. Die Gnome Oberfläche gefällt mir sehr gut (die gibts ja auch unter FreeBSD :). Das Paketemanagement (von Debian) find ich recht umständlich, weil z.B. sehr oft noch eine alte Version von Ruby (1.8.2 – die war glaub ziemlich buggy!) zu finden ist. Das ist unter FreeBSD meiner Meinung nach besser, weil nicht alles in tausend kleine Pakete gestückelt wird, und ich mich einfach besser auskenn :). Unter X kann ich keine Auflösung oberhalb von 1024×768 einstellen, unter FreeBSD ging das! WPA2 hab ich auch hier nicht zum Laufen gebracht. Es mag jedoch an unserem Router liegen! Gut finde ich, dass es alles als Binärpaket gibt, da sollte FreeBSD noch etwas ändern. Hier gibt es auch Binärpakete, allerdings nicht in dem Umfang. Die Wireless-Konfiguration unter Gnome hat nicht geklappt. Das KNetwork Tool unter KDE scheint hier viel besser zu sein. Linux hat natürlich seine Vorteile, z.B. ist es einfach einen Plugin für Flash zu installieren. So einfach ist das unter FreeBSD nicht. Systemupdates gehen mit PC-BSD genauso einfach wie mit Ubutu. Etwas besser ist wohl die Unterstützung von Plugin-Devices in Ubutu. Auch der Hibernate Mode hat mir recht gut gefallen. Jedoch, wenn dann der Rechner mehrere Male abstürzt bringt das nichts, ausserdem dauert das Laden relativ lange. Schon jetzt bin ich mir sicher: Bald werd ich kein Ubuntu mehr haben :)
Dank Knoppicillin ist nun der Rechner meiner Schwester wieder virenfrei. War infiziert mit Beagel, und das gleich 11 mal :). Jetzt nicht mehr… hoffentlich.