Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Publicaciones sobre sysadmin (publicaciones antiguas, página 7)

Buenas noticias: Linux revive hardware! Malas noticias: no deberia!

Es­te post es pa­ra reír­se un ra­ti­to. Es­te no de­be­ría ser su ser­ve­r. Es una so­lu­ción tem­po­ral de­bi­do a mul­ti­ples fa­llas si­mul­ta­neas de har­dwa­re. Es­ta es una em­pre­sa gran­de y bien ad­mi­nis­tra­da, y es­ta si­tua­ción irre­gu­lar se va a re­sol­ver pron­to. Y de to­das for­mas fun­cio­na.

Co­mo sa­be­n, Li­nux pue­de ha­cer es­te ti­po de tra­ba­jo sin gran­des re­que­ri­mien­tos de har­dwa­re. Des­pués de to­do, só­lo ne­ce­si­ta ma­ne­jar unos 3 Mbps de da­to­s, y es­te equi­po tie­ne 2GB de RA­M, así que hay mu­cho lu­gar pa­ra un ca­ché rá­pi­do.

Así que ten­ga­mos un po­co de bue­na­s/­ma­las no­ti­cia­s.

Bue­nas no­ti­cia­s: Es un ver­da­de­ro ser­vi­dor IBM! Ma­las no­ti­cia­s: Es un IBM Ne­tfi­ni­ty 5000 (mo­de­lo 3Ry)!


Aquí hay un po­co de in­for­ma­ción téc­ni­ca de IBM.

Bue­nas no­ti­cia­s: Tie­ne 2 CPUs! Ma­las no­ti­cia­s: Son dos Pen­tium II de 450­Mh­z.

Bue­nas no­ti­cia­s: so­por­ta dis­cos SCSI ho­t-swa­p! Ma­las no­ti­cia­s: no hay dis­cos pa­ra esa con­tro­la­do­ra, así que va­mos a usar es­te dis­co IDE PA­TA de 8GB!


Y lo va­mos a de­jar ahí sen­ta­do jun­to a la lec­to­ra de CD, jun­to al agu­je­ro adon­de irían los dis­cos SCSI.

Ma­las no­ti­cia­s: tien­de a re­ca­len­tar­se! Bue­nas no­ti­cia­s! te­ne­mos có­mo man­te­ner el ca­fé ti­bio!


New qmail plugin idea: overload

But then you start seeing how your "not pre­pro­ce­ss­e­d" queue star­ts gro­win­g, and gro­win­g...

This can al­so mean things like cla­mav or spa­ma­ssas­si­n, whi­ch need to che­ck the mail be­fo­re it ge­ts queued are not kee­ping up wi­th the mail flo­w, or ma­y­be so­me IO per­for­ma­ce is­sue.

But what can you do ri­gh now to fix it?

We­ll, you can di­sa­ble spa­ma­ssas­si­n, or, in ex­tre­me ca­ses, shu­tdo­wn SM­TP so the sys­tem has a chan­ce to ca­tch its brea­th so to speak.

Of cour­se, clo­sing SM­TP means your own users can't send email ei­the­r, whi­ch su­cks.

Now the­re is a li­gh­ter al­ter­na­ti­ve: shu­tdo­wn SM­TP for tho­se who are not your user­s.

He­re's the tri­vial co­de, im­ple­men­ted as a SPP plu­gi­n:


if [ -f /var/qmail/control/overloaded ]
      if [ -z "$SMTPAUTHUSER" ]
              echo R451 Temporary Failure: Server overload
              echo overload: $PPID Temporary Failure: Server overload >&2

And if you are da­ring and want to make your sys­tem se­l­f-­co­rrec­tin­g, ma­y­be you should cron so­me­thing like this:

* * * * * if [ `qmail-qstat  | tail -1 | cut -d: -f2` -gt 100 ];\
then touch /var/qmail/control/overloaded ;\
else rm -f /var/qmail/control/overloaded; fi

I wi­ll pro­ba­bly co­de it again in C and make it part of ra/­plu­gin­s.

Yes, Xandros was horrible. But this ubuntu thing is working out nicely!

As I said be­fore, the bas­tardized Xan­dros [1] sucked. In fac­t, I man­aged to de­stroy it. So I de­cid­ed to switch to an­oth­er dis­tro. Any dis­tro.

En­ter ee­eX­ubun­tu, a eee-­tuned Xubun­tu [2].

Since I pre­fer KDE to XFCE, I start­ed hack­ing at it, and pro­duced, IMVHO, a much nicer thing.


As you can see, it takes slight­ly less space than ee­eX­ubun­tu's de­fault, and a whoop­ing 1GB less than the de­fault dis­tro.

How did I do it? First, by de­cid­ing what I want­ed.

  • No Open­Of­fice. Kof­­fice is enough to read doc­s, then there is Google doc­s, and I pro­­duce my texts us­ing do­cu­tils

  • No print­­ing. I have not used a print­­er in 5 years. What are the odds I will use one from the eee?

  • wicd for net­­work con­­fig­u­ra­­tion. It works for wire­­less/wired/en­cryp­t­ed and has no prob­lem what­­so­ev­er re­­con­nec­t­ing af­ter sus­pend.

  • yakuake for ter­mi­­nal. It us­es the least screen-s­­pace pos­si­ble: none if you are not us­ing it.

  • Fire­­fox + Flash (I would use Kon­­queror, if flash9 had not bro­ken it)

  • Kmail + Akre­­ga­­tor for mail and RSS

It works great, boots in 35 sec­onds (and I have not tuned that, yet).

Here's the list of in­stalled pack­ages and here's the list of re­pos I am us­ing

Maybe some­one more en­ter­pris­ing will make a re­al dis­tro out of it.

Contents © 2000-2023 Roberto Alsina