Preocupació rendiment ltsp 5

Estic fent proves amb servidor de terminals i un únic clien, un ordinador de la Caixa (PIII i 256 Ram)
Amb aplicacions com firefox va bé, però he mirat el tuxpaint i ha trigat molt més a engegar:
- Instal·lació autónoma: 10 segons.
- Ltsp: 75 segons.

Com dic estic preocupat que no quan estiguin tots els clients connectats funcioni encara més lent.
Els que teniu aula amb ltsp 5, com va?

Salutacions

Xavier

Xavier Casado
Hola Xavier,

Ens ho mirem. Estem parlant d'una instal·lació ja feta per tú o bé és el servidor de terminals del catàleg?


Joan de Gracia
Confirmo les meves preocupacions:

Es tracta d'un servidor no del catàleg: PIV a 2,40 Mz /2Gb Ram
Clients: 4 Ordinadors de la Caixa, PIII /256 Mb Ram

He provat amb d'obrir el Tuxpaint als 5 ordinadors a la vegada. El primer que he anat ha trigat 9 minuts i els altres 4 ni s'ha obert.
He anat a obrir un altre i porta camí dels 9 minuts.

He fet la prova amb aquests ordinadors de la caixa, però en realitat els ordinadors que vull ficar serien PII - PIII amb 128 de Ram.

El servidor no es una màquina gaire potent per tenir 16 clients però 4 o 8 afegint una mes memoria em semblava correcte.

En fi, com ho veieu?

Xavier Casado

fcasado

Confirmo les meves preocupacions:

Es tracta d'un servidor no del catàleg: PIV a 2,40 Mz /2Gb Ram
Clients: 4 Ordinadors de la Caixa, PIII /256 Mb Ram

He provat amb d'obrir el Tuxpaint als 5 ordinadors a la vegada. El primer que he anat ha trigat 9 minuts i els altres 4 ni s'ha obert.
He anat a obrir un altre i porta camí dels 9 minuts.

He fet la prova amb aquests ordinadors de la caixa, però en realitat els ordinadors que vull ficar serien PII - PIII amb 128 de Ram.

El servidor no es una màquina gaire potent per tenir 16 clients però 4 o 8 afegint una mes memoria em semblava correcte.

En fi, com ho veieu?



Algú te alguna configuració semblant al seu centre? Us sembla que amb el maquinari que tinc funcionarà tot prou àgil?


Al solucionar (http://linkat.xtec.cat/portal_linkat/wikilinkat/index.php/LTSP5_Linkat3)
he vist unes indicacions per millorar el rendiment d'aplicacions flash, videos youtube,... M'he trobat amb un problema amb la compilació:

Argo1:/ # su
Argo1:/ # make flashsupport.c
make: Nothing to be done for `flashsupport.c'.
Argo1:/ # make install flashsupport.c
make: *** No rule to make target `install'. Stop.
Argo1:/ # sh flashsupport.c
flashsupport.c: line 1: /bin: is a directory
flashsupport.c: line 2: syntax error near unexpected token `('
flashsupport.c: line 2: `Adobe Systems Incorporated(r) Source Code License Agreement'
Argo1:/ # ls
bin dev fitxer nou home lost+found mnt proc sbin sys usr
boot etc flashsupport.c lib media opt root srv tmp var
Argo1:/ #


Ho faig bé?

Xavier Casado
Hola Xavier,

Crec que només cal fer "make" i "make install", comprova que tinguis instal·lats els paquets "gcc" i "gcc-c++".

Salut.

Projecte Linkat
He instal·lat aquests dos paquets. El resultat és el mateix:

Argo1:~/Desktop # make flashsupport.c
make: Nothing to be done for `flashsupport.c'.
Argo1:~/Desktop # make install flashsupport.c
make: *** No rule to make target `install'. Stop.
Argo1:~/Desktop #

Xavier Casado
Hola,

Descarrega això:
https://svn.revolutionlinux.com/MILLE/XTERM/trunk/libflashsupport/Tarballs/libflashsupport-1.2.tar.bz2

Descomprimeix l'arxiu, entra dins la carpeta que es crea i fes: "make" i després "make install" sense posar flashsupport.c

Salut.

Projecte Linkat
Hola, l'acabo de fer i et reporto el resultat:

Argo1:~/Desktop/libflashsupport-1.2 # make
gcc -fPIC -shared -O2 -Wall -Werror -lpthread -DLIBDIR=/usr/lib \
-DALSA_INTERNAL -DPULSEAUDIO -DLIBPULSEPATH='"/usr/lib/libpulse-simple.so.0"' -DESD -DLIBESDPATH='"/usr/lib/libesd.so.0"' \
-DOSS -DOPENSSL -lssl \
flashsupport.c -o libflashsupport.so
flashsupport.c:200:25: error: openssl/ssl.h: El fitxer o directori no existeix
flashsupport.c:225:17: error: esd.h: El fitxer o directori no existeix
flashsupport.c:232:26: error: pulse/simple.h: El fitxer o directori no existeix
flashsupport.c:233:25: error: pulse/error.h: El fitxer o directori no existeix
flashsupport.c:290: error: expected ?)? before ?format?
flashsupport.c:295: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token
flashsupport.c:300: error: expected ?)? before ?*? token
flashsupport.c:302: error: expected ?)? before ?*? token
flashsupport.c:304: error: expected ?)? before ?*? token
flashsupport.c:306: error: expected ?)? before ?*? token
flashsupport.c:308: error: expected declaration specifiers or ?...? before ?*? token
flashsupport.c:308: error: expected ?)? before ?*? token
flashsupport.c:310: error: expected ?)? before ?*? token
flashsupport.c: In function ?FPX_SoundOutput_Detect?:
flashsupport.c:437: error: ?FPX_pa_simple_new? undeclared (first use in this function)
flashsupport.c:437: error: (Each undeclared identifier is reported only once
flashsupport.c:437: error: for each function it appears in.)
flashsupport.c:448: error: ?FPX_pa_simple_write? undeclared (first use in this function)
flashsupport.c:453: error: ?FPX_pa_simple_drain? undeclared (first use in this function)
flashsupport.c:458: error: ?FPX_pa_simple_free? undeclared (first use in this function)
flashsupport.c:463: error: ?FPX_pa_simple_get_latency? undeclared (first use in this function)
flashsupport.c:476: error: ?FPX_esd_play_stream_fallback? undeclared (first use in this function)
cc1: warnings being treated as errors
flashsupport.c: In function ?FPX_Init?:
flashsupport.c:669: error: implicit declaration of function ?SSL_library_init?
flashsupport.c: At top level:
flashsupport.c:692: error: expected specifier-qualifier-list before ?SSL?
flashsupport.c: In function ?FPX_SSLSocket_Create?:
flashsupport.c:702: error: ?struct SSL_Instance? has no member named ?sslCtx?
flashsupport.c:702: error: implicit declaration of function ?SSL_CTX_new?
flashsupport.c:702: error: implicit declaration of function ?TLSv1_client_method?
flashsupport.c:704: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c:704: error: implicit declaration of function ?SSL_new?
flashsupport.c:704: error: ?struct SSL_Instance? has no member named ?sslCtx?
flashsupport.c:706: error: implicit declaration of function ?SSL_set_fd?
flashsupport.c:706: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c:710: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c:711: error: implicit declaration of function ?SSL_shutdown?
flashsupport.c:711: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c:714: error: ?struct SSL_Instance? has no member named ?sslCtx?
flashsupport.c:715: error: implicit declaration of function ?SSL_CTX_free?
flashsupport.c:715: error: ?struct SSL_Instance? has no member named ?sslCtx?
flashsupport.c: In function ?FPX_SSLSocket_Destroy?:
flashsupport.c:729: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c:730: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c:733: error: ?struct SSL_Instance? has no member named ?sslCtx?
flashsupport.c:734: error: ?struct SSL_Instance? has no member named ?sslCtx?
flashsupport.c: In function ?FPX_SSLSocket_Connect?:
flashsupport.c:750: error: implicit declaration of function ?SSL_connect?
flashsupport.c:750: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c: In function ?FPX_SSLSocket_Receive?:
flashsupport.c:762: error: implicit declaration of function ?SSL_read?
flashsupport.c:762: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c: In function ?FPX_SSLSocket_Send?:
flashsupport.c:774: error: implicit declaration of function ?SSL_write?
flashsupport.c:774: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c: In function ?ESD_FPX_SoundOutput_Open?:
flashsupport.c:1251: error: ?ESD_DEFAULT_RATE? undeclared (first use in this function)
flashsupport.c:1253: error: ?ESD_BITS16? undeclared (first use in this function)
flashsupport.c:1253: error: ?ESD_STEREO? undeclared (first use in this function)
flashsupport.c:1254: error: ?ESD_STREAM? undeclared (first use in this function)
flashsupport.c:1254: error: ?ESD_PLAY? undeclared (first use in this function)
flashsupport.c:1255: error: ?esd_format_t? undeclared (first use in this function)
flashsupport.c:1255: error: expected ?;? before ?format?
flashsupport.c:1263: error: ?format? undeclared (first use in this function)
flashsupport.c:1271: error: implicit declaration of function ?FPX_esd_play_stream_fallback?
flashsupport.c: At top level:
flashsupport.c:1323: error: expected specifier-qualifier-list before ?pa_simple?
flashsupport.c: In function ?pa_thread?:
flashsupport.c:1337: error: implicit declaration of function ?FPX_pa_simple_write?
flashsupport.c:1337: error: ?struct PULSE_SoundOutput_Instance? has no member named ?pa_sock?
flashsupport.c:1341: error: ?struct PULSE_SoundOutput_Instance? has no member named ?signal?
flashsupport.c: In function ?PULSEAUDIO_FPX_SoundOutput_Open?:
flashsupport.c:1356: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?ss?
flashsupport.c:1356: error: ?ss? undeclared (first use in this function)
flashsupport.c:1356: error: expected expression before ?{? token
flashsupport.c:1368: error: ?struct PULSE_SoundOutput_Instance? has no member named ?pa_sock?
flashsupport.c:1368: error: implicit declaration of function ?FPX_pa_simple_new?
flashsupport.c:1368: error: ?PA_STREAM_PLAYBACK? undeclared (first use in this function)
flashsupport.c:1371: error: ?struct PULSE_SoundOutput_Instance? has no member named ?thread?
flashsupport.c: In function ?PULSEAUDIO_FPX_SoundOutput_Close?:
flashsupport.c:1390: error: ?struct PULSE_SoundOutput_Instance? has no member named ?signal?
flashsupport.c:1392: error: ?struct PULSE_SoundOutput_Instance? has no member named ?thread?
flashsupport.c:1393: error: ?struct PULSE_SoundOutput_Instance? has no member named ?thread?
flashsupport.c:1396: error: ?struct PULSE_SoundOutput_Instance? has no member named ?pa_sock?
flashsupport.c:1397: error: implicit declaration of function ?FPX_pa_simple_drain?
flashsupport.c:1397: error: ?struct PULSE_SoundOutput_Instance? has no member named ?pa_sock?
flashsupport.c:1398: error: implicit declaration of function ?FPX_pa_simple_free?
flashsupport.c:1398: error: ?struct PULSE_SoundOutput_Instance? has no member named ?pa_sock?
flashsupport.c: In function ?PULSEAUDIO_FPX_SoundOutput_Latency?:
flashsupport.c:1411: error: ?pa_usec_t? undeclared (first use in this function)
flashsupport.c:1411: error: expected ?;? before ?latencytime?
flashsupport.c:1416: error: ?struct PULSE_SoundOutput_Instance? has no member named ?pa_sock?
flashsupport.c:1417: error: ?latencytime? undeclared (first use in this function)
flashsupport.c:1417: error: implicit declaration of function ?FPX_pa_simple_get_latency?
flashsupport.c:1417: error: ?struct PULSE_SoundOutput_Instance? has no member named ?pa_sock?
make: *** [libflashsupport.so] Error 1
Argo1:~/Desktop/libflashsupport-1.2 # make install
gcc -fPIC -shared -O2 -Wall -Werror -lpthread -DLIBDIR=/usr/lib \
-DALSA_INTERNAL -DPULSEAUDIO -DLIBPULSEPATH='"/usr/lib/libpulse-simple.so.0"' -DESD -DLIBESDPATH='"/usr/lib/libesd.so.0"' \
-DOSS -DOPENSSL -lssl \
flashsupport.c -o libflashsupport.so
flashsupport.c:200:25: error: openssl/ssl.h: El fitxer o directori no existeix
flashsupport.c:225:17: error: esd.h: El fitxer o directori no existeix
flashsupport.c:232:26: error: pulse/simple.h: El fitxer o directori no existeix
flashsupport.c:233:25: error: pulse/error.h: El fitxer o directori no existeix
flashsupport.c:290: error: expected ?)? before ?format?
flashsupport.c:295: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token
flashsupport.c:300: error: expected ?)? before ?*? token
flashsupport.c:302: error: expected ?)? before ?*? token
flashsupport.c:304: error: expected ?)? before ?*? token
flashsupport.c:306: error: expected ?)? before ?*? token
flashsupport.c:308: error: expected declaration specifiers or ?...? before ?*? token
flashsupport.c:308: error: expected ?)? before ?*? token
flashsupport.c:310: error: expected ?)? before ?*? token
flashsupport.c: In function ?FPX_SoundOutput_Detect?:
flashsupport.c:437: error: ?FPX_pa_simple_new? undeclared (first use in this function)
flashsupport.c:437: error: (Each undeclared identifier is reported only once
flashsupport.c:437: error: for each function it appears in.)
flashsupport.c:448: error: ?FPX_pa_simple_write? undeclared (first use in this function)
flashsupport.c:453: error: ?FPX_pa_simple_drain? undeclared (first use in this function)
flashsupport.c:458: error: ?FPX_pa_simple_free? undeclared (first use in this function)
flashsupport.c:463: error: ?FPX_pa_simple_get_latency? undeclared (first use in this function)
flashsupport.c:476: error: ?FPX_esd_play_stream_fallback? undeclared (first use in this function)
cc1: warnings being treated as errors
flashsupport.c: In function ?FPX_Init?:
flashsupport.c:669: error: implicit declaration of function ?SSL_library_init?
flashsupport.c: At top level:
flashsupport.c:692: error: expected specifier-qualifier-list before ?SSL?
flashsupport.c: In function ?FPX_SSLSocket_Create?:
flashsupport.c:702: error: ?struct SSL_Instance? has no member named ?sslCtx?
flashsupport.c:702: error: implicit declaration of function ?SSL_CTX_new?
flashsupport.c:702: error: implicit declaration of function ?TLSv1_client_method?
flashsupport.c:704: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c:704: error: implicit declaration of function ?SSL_new?
flashsupport.c:704: error: ?struct SSL_Instance? has no member named ?sslCtx?
flashsupport.c:706: error: implicit declaration of function ?SSL_set_fd?
flashsupport.c:706: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c:710: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c:711: error: implicit declaration of function ?SSL_shutdown?
flashsupport.c:711: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c:714: error: ?struct SSL_Instance? has no member named ?sslCtx?
flashsupport.c:715: error: implicit declaration of function ?SSL_CTX_free?
flashsupport.c:715: error: ?struct SSL_Instance? has no member named ?sslCtx?
flashsupport.c: In function ?FPX_SSLSocket_Destroy?:
flashsupport.c:729: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c:730: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c:733: error: ?struct SSL_Instance? has no member named ?sslCtx?
flashsupport.c:734: error: ?struct SSL_Instance? has no member named ?sslCtx?
flashsupport.c: In function ?FPX_SSLSocket_Connect?:
flashsupport.c:750: error: implicit declaration of function ?SSL_connect?
flashsupport.c:750: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c: In function ?FPX_SSLSocket_Receive?:
flashsupport.c:762: error: implicit declaration of function ?SSL_read?
flashsupport.c:762: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c: In function ?FPX_SSLSocket_Send?:
flashsupport.c:774: error: implicit declaration of function ?SSL_write?
flashsupport.c:774: error: ?struct SSL_Instance? has no member named ?ssl?
flashsupport.c: In function ?ESD_FPX_SoundOutput_Open?:
flashsupport.c:1251: error: ?ESD_DEFAULT_RATE? undeclared (first use in this function)
flashsupport.c:1253: error: ?ESD_BITS16? undeclared (first use in this function)
flashsupport.c:1253: error: ?ESD_STEREO? undeclared (first use in this function)
flashsupport.c:1254: error: ?ESD_STREAM? undeclared (first use in this function)
flashsupport.c:1254: error: ?ESD_PLAY? undeclared (first use in this function)
flashsupport.c:1255: error: ?esd_format_t? undeclared (first use in this function)
flashsupport.c:1255: error: expected ?;? before ?format?
flashsupport.c:1263: error: ?format? undeclared (first use in this function)
flashsupport.c:1271: error: implicit declaration of function ?FPX_esd_play_stream_fallback?
flashsupport.c: At top level:
flashsupport.c:1323: error: expected specifier-qualifier-list before ?pa_simple?
flashsupport.c: In function ?pa_thread?:
flashsupport.c:1337: error: implicit declaration of function ?FPX_pa_simple_write?
flashsupport.c:1337: error: ?struct PULSE_SoundOutput_Instance? has no member named ?pa_sock?
flashsupport.c:1341: error: ?struct PULSE_SoundOutput_Instance? has no member named ?signal?
flashsupport.c: In function ?PULSEAUDIO_FPX_SoundOutput_Open?:
flashsupport.c:1356: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?ss?
flashsupport.c:1356: error: ?ss? undeclared (first use in this function)
flashsupport.c:1356: error: expected expression before ?{? token
flashsupport.c:1368: error: ?struct PULSE_SoundOutput_Instance? has no member named ?pa_sock?
flashsupport.c:1368: error: implicit declaration of function ?FPX_pa_simple_new?
flashsupport.c:1368: error: ?PA_STREAM_PLAYBACK? undeclared (first use in this function)
flashsupport.c:1371: error: ?struct PULSE_SoundOutput_Instance? has no member named ?thread?
flashsupport.c: In function ?PULSEAUDIO_FPX_SoundOutput_Close?:
flashsupport.c:1390: error: ?struct PULSE_SoundOutput_Instance? has no member named ?signal?
flashsupport.c:1392: error: ?struct PULSE_SoundOutput_Instance? has no member named ?thread?
flashsupport.c:1393: error: ?struct PULSE_SoundOutput_Instance? has no member named ?thread?
flashsupport.c:1396: error: ?struct PULSE_SoundOutput_Instance? has no member named ?pa_sock?
flashsupport.c:1397: error: implicit declaration of function ?FPX_pa_simple_drain?
flashsupport.c:1397: error: ?struct PULSE_SoundOutput_Instance? has no member named ?pa_sock?
flashsupport.c:1398: error: implicit declaration of function ?FPX_pa_simple_free?
flashsupport.c:1398: error: ?struct PULSE_SoundOutput_Instance? has no member named ?pa_sock?
flashsupport.c: In function ?PULSEAUDIO_FPX_SoundOutput_Latency?:
flashsupport.c:1411: error: ?pa_usec_t? undeclared (first use in this function)
flashsupport.c:1411: error: expected ?;? before ?latencytime?
flashsupport.c:1416: error: ?struct PULSE_SoundOutput_Instance? has no member named ?pa_sock?
flashsupport.c:1417: error: ?latencytime? undeclared (first use in this function)
flashsupport.c:1417: error: implicit declaration of function ?FPX_pa_simple_get_latency?
flashsupport.c:1417: error: ?struct PULSE_SoundOutput_Instance? has no member named ?pa_sock?
make: *** [libflashsupport.so] Error 1
Argo1:~/Desktop/libflashsupport-1.2 #

Xavier Casado
Hola,

A la URL:

http://linkat.xtec.cat/portal_linkat/wikilinkat/index.php/LTSP5_Linkat3

hi ha unes orientacions sobre com muntar el servidor de terminals.

Coses que s'han de fer?

1- Seguir les indicacions de la URL anterior fins al punt on poso la URL al fitxer lts.conf d'exemple. Dic que és d'exemple perquè segurament tindràs d'altres IPs assignades, la resta de la configuració permet tenir la interfície gràfica en català i està optimitzat.

2- Segurament el problema et vindrà pel tema de l'àudio. En aquest sentit fes el següent:

- Els usuaris del servidor de terminals han de pertànyer a aquests dos grups: pulse-rt i pulse-access

- Has d'instal·lar el paquet: ltsp-pavucontrol que es troba ja dins del repositori de Linkat.

No és necessari passar el flash 10 al 9 si el switch que tens és d'1 Gbps. El problema de rendiment del flash 10 el trobaràs en l'execució de vídeos. En aquest sentit,si no tens un switch a 1 Gbps, llavors és recomanable.

Donat que el problema que exposes té a veure amb el Tuxpaint, millor segueix els punts que t'indico i després mirarem el tema del Flash Support.


Joan de Gracia
Hola Joan,
Mirant les indicacions, estava fet, però no havia editat el fitxer lts.conf. Estava d'origen. M'ha semblat més senzill agafar la mostra de fitxer optimitzat i modificar-lo amb les meves ips.
El tema de l'audio ja estava ben configurat.
ARA EL TUXPAINT FUNCIONA CORRECTAMENT!!!!

Els videos del youtube, hi ha ordinadors que s'escolta malament, amb talls, altres bé. El switch és el del projecte Heure.

Es recomana que el servidor ltsp tingui dues tarjes de xarxa, una per servir la xarxa ltsp, però això si els ordinadors no estan junts resulta inviable no?

Xavier Casado