Afinando el desempeño de FreeBSD 7

La versión 7 es un salto gigantesco para FreeBSD. El desempeño del núcleo ha vuelto a ponerse a la par o por encima de los sistemas operativos que se le equiparan (y no, Virginia, no hablo de Linux). Sin embargo, los valores por defecto de muchos parámetros del núcleo dejan que desear. Para obtener un mejor desempeño hay que aumentar algunos parámetros de manejo de archivos y de datos de red. Sin más esto es lo que uso, basado en información en el manual y en la guía de afinación de TCP:

kern.maxfiles=32768
kern.ipc.shmmax=67108864
kern.ipc.shmall=32768
kern.ipc.maxsockbuf=16777216
net.inet.tcp.rfc1323=1
net.inet.tcp.sendbuf_max=16777216
net.inet.tcp.recvbuf_max=16777216

Estos parámetros los coloco en /boot/loader.conf en vez de /etc/sysctl.conf pues es necesario que sean establecidos al momento de activar el núcleo. Cuando sysctl.conf es leido en el proceso de inicio es ya demasiado tarde.

Comments

Fedora 8: beatiful and brittle like a snowflake

I make a point of trying out Fedora at leat once every year. I think it is a matter of romantic intoxication; I felt betrayed when RedHat 9’s XFree86 fried the flyback of my favorite, very expensive, 17 inch high resolution CRT. That toy is with me nomore but it still gives happiness to someone else. Yup, I repaired it and passed it along.

Life is too short, you never know if you will break your neck getting out of bed tomorrow, or slipping in the shower today, so I chose to grab a copy of the Live CD installer i686 edition to be as compatible with all the hardware I own as possible.

First I tried it in my desktop, an Athlon-XP box, in the aging workstation category class. Close but no cigar. I installed it in the first part of the hard drive and left the other half to install FreeBSD later on. As soon as I installed FreeBSD, Fedora’s kernel became unable to boot the system. It didn’t matter if I installed FreeBSD first or second or in the first or the second half of the disk, if I used Fedora with LVM2 or plain primary and extended partitions… Whatever. Debian and a couple of obscure distros share space fine with FreeBSD in that same disk, therefore the problem is Fedora’s kernel patches that make the kernel barf on whatever it is that FreeBSD does to the partition table. As I’m not willing to dedicate a whole HD to Fedora, it is out of the question in my desktop.

Then I tried it in my laptop. This one is a nice last generation Dell job. In fact this model is sold with Ubuntu Linux in the US of A and to some select European suckers (as my friend Benct would put it, he can’t buy it because he doesn’t live in one of the three countries of the EU with lucky bastards willing to pay top Euro, did you know that Dell charges the same in devalued US dollars or Euros? Poor Europeans suckers. Apple, HP, Lenovo and the other leeches are even worse). OK, it took 5 tries, something to do with the fact that I use JFS for all filesystems in this laptop, with Ubuntu Linux as its main OS btw. Of course, using JFS in Fedora’s root partition when installing from the Live CD is out of the question!

The software choice in Fedora’s Live CD is rather scarce and in my opinion backwards. OK, Abiword is great, but it was great in 1999 too. The technical decisions are highly disputable. Canonical manages to put a whole OS install in a 700MB Live CD that contains more or less that of a standard install made with a 700MB alternate CD and that includes OpenOffice.org! The problem as I see it is the choice of filesystem and compression for the live CD. They may pretend that they want it to be as compatible with older hardware as possible, but there are limits to what you can do and yet, I have booted Ubuntu’s Live CDs in Pentium IIIs with 192MB RAM… squashfs and gzip compression can only go so far. After installing what did I find? A beatiful desktop and both a broken wifi, sound and video camera. The first was fixable after a 331MB update over the wire, downloading and installing the latest firmware for my wireless radio from Intel’s website and setting up a little modprobe hack to modify the default settings of the kernel driver to stop hardware network scanning (Network Manager and wpa supplicant do just fine on its own). I also had to set my access point to broadcast its ESSID, that is, I had to publish the ESSID of my access point. Talk about a borked Network Manager (0.7 btw). The video camera is still at large and the sound chipset model has to be declared explicitly when loading the kernel module.

Ah! And don’t get me started on the init system, it plainly sucks. There are sysv init implementations of implentations and this one is one of the most baroque in the wild yet. Let’s hope that the adoption of upstart infuses sanity into that heap of bullknit.

My conclusion: I like Fedora 8. It is beautiful –did I mention the default horary slideshow desktop?– The visual impression is stunning and the overall visual integration is sobering, although I find the color range chosen for the Nodoka theme childish and too pretentious in a KDE Plastique kind of kitschy way but it is staying nonetheless. The OS is as rock-solid as usual since Fedora Core 5 but the warts show. I won’t be switching to it soon, but I’ll keep it installed as Rawhide while enjoying the bumpy ride to Fedora 9.

Update 01
It is already February 21 and I’m loving riding on Rawhide. Now, if somebody would care to fix HAL so that I have soft brightness control again…

Update 02 It is April 18 and yes, upstart is a great improvement. PackageKit is like heaven after using Pirut for so long as well. Yumex is still a staple though. Fedora 9 is already a blast.

Comments

OpenBSD ElTorito ISO images

Look ma, no emulation!

mkisofs -r -no-emul-boot -b 4.2/i386/cdbr -c boot.catalog -o myrelease_4_2.iso 4_2

Comments

On being a busnessman and all-that-jazz

Wandering across Planet Fedora I ran into a blog post from a fellow national that talks a bit about cosaslibres.com. As far as I know through the grapevine, cosaslibres.com is a one-man show that’s been running since the last century or turnabouts.

It is meritorious that the guy had the guts to start a dotcom business in Colombia of all places at a time when most high-end internet users in the country believed that 28K modems were teh kool (wish I had done it). The business has grown but apparently not enough for him to grow as a business person yet; he ass evidently spread too thin to give attention to the basics of his business. That’s the failure of many small businesses where the owner can’t let go to become first the general manager and later the main stock holder and president of the board. There ain’t that many people out there as hungry as Bill Gates, Mr. Duh-velopers or Julio Mario Santodomingo…

BTW, that blog should allow OpenID settings. I much rather have people identify with an OpenID that’s traceable than allow open commenting to all with hand-hold moderation as I have set this blog now. Let’s hope wordpress.com becomes an OpenID consumer soon.

Comments

Correo Yahoo! gratuito con IMAP

Como escribo abajo: compra un iPhone ¡Si como nó! Como si fuese a desperdiciar mi dinero en un aparato craqueado que posiblemente llegó al país a través del mercado negro de celulares robados, que es tan grande como el mercado negro de la heroína por lo que entiendo.

O, abres una cuenta en IzyMail y se configura para usar IMAP. Eso sí, hay que estar dispuesto a aflojar algo de oro por el servicio. No me gusta que no tenga TLS ni SSL…

Comments

Correo Yahoo! gratuito con POP3

Yay!

Una de las cosas que más me desilusionó de Yahoo! fue su decisión a principios de siglo de eliminar el servicio de acceso remoto con POP3 a sus servidores de correo a las cuentas gratis. Bueno, el año pasado cuando comenzaron con el cuento del Mail Beta (¡eso es tela que no cortaré hoy!) suspendieron los servicios comerciales de Mail Plus así que pues aun cuando ya había decidido reclamar mi cuenta de correo de Yahoo!, no pude ni pagando.

Así mismo, al final del 2006 hubo una prueba de correo IMAP que en principio parecía que cubriría a todos los usuarios del servicio pero solo duró pocas semanas (¿o dias?), al final solo es accesible si estás usando un teléfono móbil con cliente IMAP integrado (¿suena a iPhone? ¡Sipi!). Ah! Además está el hecho de que mi cuenta es de yahoo.com pues la abrí cuando todavía no existían los servicios nacionales como yahoo.com.mx o yahoo.es los cuales, incidentalmente, nunca dejaron de ofrecer POP3.

Hoy estoy muy contento pues me dí cuenta que muy calladamente, Yahoo! ha activado el servicio POP3 y SMTP, y con seguridad SSL además, para todos los usuarios del servicio gratuito de correo. Se hace así:

  1. Hay que activar el servicio de Yahoo! Alertas.
  2. Usuario: el nombre de usuario sin el @yahoo.com
  3. POP3: pop.mail.yahoo.com
  4. SMTP: smtp.mail.yahoo.com
  5. Activar conexiones SSL para ambos servicios en el cliente de correo

y ¡listo!

Nota Bene: Esto solo parece funcionar con cuentas viejas. Mi cuenta principal en Yahoo! tiene más años que los de algunos lectores así que tiene POP3. Otra cuenta, que abrí hará un par de años, no. :-(

Comments

Borrando discos duros por diversión o ganancia

Hay muchas razones por las cuales hay que borrar un disco duro. Desde corregir problemas con bloques dañados o forzar la geometría del disco a sus valores por defecto cuando hemos creado una tabla de particiones defectuosa hasta simple y llana paranoia. Yo me justifico con las razones uno y dos y conozco aquellos que definitivamente lo hacen por la tercera…

En vez de comprar una utilidad comercial y/o propietaria como el MaxBlast (haciendo un aparte, mi socio casi se muere cuando le regalé una copia del Ultimate Boot CD con una copia gratuita de la última versión. ¡Fué y sacó sus disquetes de la versión anterior que le habían costado su buen dinero en Miami! Nos tocó consolar la pena con unas cervecitas, porque no era viernes…), que lo único que hace es escribir un montón de ceros en el disco, se puede usar las herramientas disponibles en cualquier sistema operativo que se arrime a los estándares POSIX y SuSv3 (UNIX(tm), BSD, GNU/Linux y otra calderilla).

Siendo genérico dd es la herramienta más poderosa que existe para trabajar con dispositivos que manejen datos, tanto en bloque como en flujo de caracteres. Por esto mismo es muy peligrosa. Debo advertir que nunca se debe usar en vano ni antes de repasar el manual, dormir ocho horas mínimo y definitivamente nunca con ron entre pecho y espalda o al otro día con la seca. Dicho esto, el truco es muy sencillo. Tomamos basura del dispositivo zero y lo descargamos al dispositivo de bloque que representa el disco duro en el sistema uando un tamaño de bloque en disco que haga que rinda el asunto:

dd if=/dev/zero of=/dev/sdb bs=1000000

Si tenemos la fortuna o desfortuna (dependiendo de nuestra opinión y de cuan fánaticos seamos) de tener disponibles las herramientas GNU coreutils, podemos usar shred:

shred -v -n1 --random-source=/dev/zero /dev/sdb

que prefiero pues puedo tener información de avance en la terminal. Por cierto,

shred -v -n0 -z /dev/sdb

hace exactamente lo mismo.

Comments

The conceptual definition of fanboy

Being adult is to stop hiding from others with masks and lies. Reaching enlightenment is to stop hiding from ourselves and to be able to see reality as is. Both are difficult tasks and many people live all their lives trapped in their own delusional fantasies.

The anonimity lent by the intarweb seems to be a letter of marque to many people who evidently have a murky perception of reality, yet thanks to their insecurity and mental confusion (I won’t talk about intellect because you need a clear mind to start using your intellect), try to impose their cockamamie ideas on others. As well as their incredibly poor use of syntax and ignorance of semantics. And this takes us to trying to distill the concept of the fanboy.

The fanboy is what I say above and worse. Usually male in the early or the late stages of his life. The young ones are ignorant and emotionally confused, therefore arrogant. The old ones are ignorant, thus arrogant but compounded with ill-founded pride due to their self-aggrandizement “my years of experience give me the right to pontificate about life, death and all in-between”. People who think that typing python -c “print ‘Hello World!’” makes you an authority. On what, I don’t have the foggiest.

And this brings me to the motivation of this post. Have you been reading lots of blog comments saying the author that he should use PCLinuxOS because it is the best next thing after the discovery of fire? Today the DistroWatch Newsletter comes with a very interesting statistic and a conclusion: the average number of users in an IRC support channel is a realistic numerical measure of the actual user base. Ready to have a reality check?

Comments

Reloj del BIOS/CMOS en UTC con MS Windows

Este truco solo funciona con Windows NT. Sí María ese Windows XP es Windows NT 5.1 para tu información.

Abres regedit (no te diré como, si no sabes te doy 99% de probabilidades de que convertirías tu computador en un ladrillo) y creas la clave HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal
Ahora en el panel de la derecha creas una nueva entrada de tipo DWORD y le das el valor 1 por UTC. 0 significa tiempo local.

Comments

Configurando PPPoE con OpenBSD

Una más en la lista interminable de notas para mí mismo.

Al contrario de FreeBSD que usa una combinación de módulos de kernel y programas de espacio de usuario, el cliente PPPoE de OpenBSD reside completamente en espacio de usuario y es más lento que una babosa con artrítis. Pero no hay que temer, hay un cliente PPP(oE) que funciona totalmente en espacio de núcleo. Es rápido, eficiente y un dolor de cabeza para configurar si uno no tiene sus notas al lado (si, está en el manual, pero ¿quien lee esos manuales con madre trabajadora social?).

El primer ingrediente es un puente aDSL configurado con los números VPI y VCI que nos ha dado el proveedor de servicio (si no son capaces de dartelos, deshaste de ese proveedor como la peste).

Creamos, o modificamos tres archivos:

#/etc/hostname.pppoe0

inet 0.0.0.0 255.255.255.255 NONE \\
    pppoedev ifdev0 \\
    authproto pap \\
    authname  \\
    authkey   \\
    up

dest 0.0.0.1

!/sbin/route add default 0.0.0.1

Donde ifdev0…. Bueno, si no sabes debes vivir un poco más antes de intentarlo.

Luego debemos configurar la interfase física de red:

# /etc/hostname.ifdev0

up

Y por último configuramos nuestro filtro de paquetes para que reduzca el tamaño de los mismos:

# /etc/pf.conf

scrub out on pppoe0 max-mss 1440

Comments

« Previous entries