[vmchecker-dev] Uber load - cs.pub.ro în fl?c?ri

Lucian Adrian Grijincu lucian.grijincu at gmail.com
Fri Aug 29 20:06:22 EEST 2008


2008/8/29 Razvan Deaconescu <razvan at anaconda.cs.pub.ro>:
>> Lucian speaketh the truth. It's up to us ... the last of the
>> warmongering beasts to save the day ... the server ... whatever :-P
>
> Sistemul de actualizare a notelor este, de asemenea, o mare gaura in
> actualul sistem de testare. Se intampla sa existe 10 instante de rulare
> a acestuia (si e destul de CPU intensive).
>
> Fie notele sunt actualizate periodic indiferent de starea rezultatelor
> obtinute, fie exista un lock care nu permite decat unei instante de
> update_grades sa ruleze. Eventual chiar o singura instanta poate astepta
> la lock. Nu are sens sa fie mai multe instante pentru ca oricum ar face
> acelasi lucru.

I have one word for you: inotify!
Când se modifică un fișier de note, se trezește demonul și updatează
doar nota respectivă.

-- 
Lucian


More information about the vmchecker-dev mailing list