Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tutto è stranamente lento [risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
d3vah
Apprentice
Apprentice


Joined: 13 Feb 2003
Posts: 184
Location: Italy

PostPosted: Wed Aug 27, 2003 8:15 pm    Post subject: Tutto è stranamente lento [risolto] Reply with quote

Beh il problema è tanto semplice da spiegare quanto oscuro, almeno per me :D
Ho appena finito di istallare gentoo partendo dallo stage1 senza nessunissimo problema. Riavvio con il kernel compilato da me, emerge kde, kdm, mi logo e istallo le applicazioni piu comuni. Tutto il sistema è abbastanza reattivo....
Riavvio... tutto liscio ma kde ci mette un po a partire fermandosi piu del solito sulle iconcine lampeggianti nello splash screen... penso: vabbè avrà i cazzi suoi da fare
Faccio partire mozilla-firebird da un accenno di utilizzo della cpu, 10 secondi senza far nulla, poi tutto a palla e parte (in genere i secondi in cui non utilizzava cpu erano 3/4 )
Faccio partire il kmail e ci mette anche lui 7/8 secondi invece di 3/4 dell'avvio precedente.
Clicco sull icona di Konsole e non fa nulla per 7 secondi poi parte di botto usando al max la cpu (nell'attesa la cpu era a 0)

Insomma una mancanza di reattività perchè poi una volta partite le applicazioni vanno alla solita alta velocità senza attese durante l'utilizzo

Il kernel è lo stesso al max avrò aggiunto qualche servizio come samba e alsa ma nulla di ke...
ke ne pensate? tnx :?
_________________
Ciro Guariglia


Last edited by d3vah on Thu Aug 28, 2003 12:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31281
Location: here

PostPosted: Wed Aug 27, 2003 8:38 pm    Post subject: Reply with quote

Che le applicazioni la prima volta ci mettono tanto e' normale (si potrebbe
usare il prelinking) cosi' tanto come dici tu e' strano. Una cosa che mi viene
in mente hai attivato hdparm?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
d3vah
Apprentice
Apprentice


Joined: 13 Feb 2003
Posts: 184
Location: Italy

PostPosted: Wed Aug 27, 2003 8:41 pm    Post subject: Reply with quote

d3vah@hell d3vah $ cat /etc/conf.d/hdparm
# Copyright 2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /home/cvsroot/gentoo-x86/sys-apps/hdparm/files/hdparm-conf.d,v 1.1 2003/03/01 21:17:39 sethbc Exp $

# You can either set hdparm arguments for each drive using disc*_args and cdrom*_args..
# eg.
disc0_args="-d1 -X69 -c1 -A1 -m16 -u1 -a64"
# disc1_args"-d1"
cdrom0_args="-d1"

# Or, you can set hdparm options for ALL drives using all_args..
# eg.
# this mimics the behavior of the current script
all_args="-d1"

d3vah@hell d3vah $
_________________
Ciro Guariglia
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31281
Location: here

PostPosted: Wed Aug 27, 2003 8:44 pm    Post subject: Reply with quote

Prova a fare il comando
Code:
# hdparm -d /dev/hdX

Come ho visto in un post recente che anche se attivato hdparm il comando
dava dma a 0 (disattivato).
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
d3vah
Apprentice
Apprentice


Joined: 13 Feb 2003
Posts: 184
Location: Italy

PostPosted: Wed Aug 27, 2003 8:47 pm    Post subject: Reply with quote

hell d3vah # hdparm -d1 -X69 -c1 -A1 -m16 -u1 -a64 /dev/hda

/dev/hda:
setting fs readahead to 64
setting 32-bit IO_support flag to 1
setting multcount to 16
setting unmaskirq to 1 (on)
setting using_dma to 1 (on)
setting xfermode to 69 (UltraDMA mode5)
setting drive read-lookahead to 1 (on)
multcount = 16 (on)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
readahead = 64 (on)
hell d3vah #

hell d3vah # hdparm -tT /dev/hda
/dev/hda:
Timing buffer-cache reads: 1148 MB in 2.00 seconds = 574.00 MB/sec
Timing buffered disk reads: 138 MB in 3.03 seconds = 45.54 MB/sec
hell d3vah #


è tutto attivo come mi sembra di leggere.... bah
_________________
Ciro Guariglia
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Wed Aug 27, 2003 9:11 pm    Post subject: Reply with quote

Anche a me ogni tanto lo fa, specialmente quando stacco la rete e la batteria e cambio stanza... lo so, sembra strano ma e' così...

Utilizzi acpi?
Comunque una cosa utile e' usare strace per vedere a cosa dipende quel lag...
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
d3vah
Apprentice
Apprentice


Joined: 13 Feb 2003
Posts: 184
Location: Italy

PostPosted: Wed Aug 27, 2003 9:38 pm    Post subject: Reply with quote

Acpi è abilitato, mi serve a spegnere il pc

come si usa strace? non mi sembra molto kiaro l'output

tnx
_________________
Ciro Guariglia
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Wed Aug 27, 2003 9:39 pm    Post subject: Reply with quote

fai
Code:
$ strace -fF -Tv -o filedilog applicazione

appena puoi chiudi l'applicazione e dai un'occhiata al file di log... li dovresti capire perche' ci impiega fanta secoli per partire...
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
d3vah
Apprentice
Apprentice


Joined: 13 Feb 2003
Posts: 184
Location: Italy

PostPosted: Wed Aug 27, 2003 9:45 pm    Post subject: Reply with quote

00024>
[pid 1208] close(10) = 0 <0.000012>
[pid 1208] open("/etc/hosts", O_RDONLY) = 10 <0.000014>
[pid 1208] fcntl64(10, F_GETFD) = 0 <0.000005>
[pid 1208] fcntl64(10, F_SETFD, FD_CLOEXEC) = 0 <0.000005>
[pid 1208] fstat64(10, {st_dev=makedev(3, 1), st_ino=450725, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=500, st_atime=2003/08/27-14:37:11, st_mtime=2003/08/27-12:42:18, st_ctime=2003/08/27-12:42:19}) = 0 <0.000007>
[pid 1208] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401d0000 <0.000015>
[pid 1208] read(10, "# /etc/hosts: This file describ"..., 4096) = 500 <0.000024>
[pid 1208] read(10, "", 4096) = 0 <0.000006>
[pid 1208] close(10) = 0 <0.000006>
[pid 1208] munmap(0x401d0000, 4096) = 0 <0.000013>
[pid 1208] socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 10 <0.000018>
[pid 1208] connect(10, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("212.216.112.222")}, 28) = 0 <0.000012>
[pid 1208] send(10, ";\354\1\0\0\1\0\0\0\0\0\0\4hell\6mshome\3net\0\0\1\0"..., 33, 0) = 33 <0.000026>
[pid 1208] gettimeofday({1062027845, 118151}, NULL) = 0 <0.000005>
[pid 1208] poll( <unfinished ...>
[pid 1209] <... poll resumed> [{fd=8, events=POLLIN}], 1, 2000) = 0 <2.004521>
[pid 1209] getppid() = 1208 <0.000132>
[pid 1209] poll([{fd=8, events=POLLIN}], 1, 2000) = 0 <2.004364>
[pid 1209] getppid() = 1208 <0.000052>
[pid 1209] poll([{fd=8, events=POLLIN}], 1, 2000) = 0 <2.004555>
[pid 1209] getppid() = 1208 <0.000053>
[pid 1209] poll( <unfinished ...>
[pid 1208] <... poll resumed> [{fd=10, events=POLLIN}], 1, 5000) = 0 <5.001418>
[pid 1208] socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 11 <0.000090>
[pid 1208] connect(11, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.0.1")}, 28) = 0 <0.000103>
[pid 1208] send(11, ";\354\1\0\0\1\0\0\0\0\0\0\4hell\6mshome\3net\0\0\1\0"..., 33, 0) = 33 <0.000106>
[pid 1208] gettimeofday({1062027850, 120779}, NULL) = 0 <0.000053>
[pid 1208] poll([{fd=11, events=POLLIN, revents=POLLIN}], 1, 5000) = 1 <0.001105>
[pid 1208] ioctl(11, FIONREAD, [33]) = 0 <0.000056>
[pid 1208] recvfrom(11, ";\354\201\3\0\1\0\0\0\0\0\0\4hell\6mshome\3net\0\0\1\0"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.0.1")}, [16]) = 33 <0.000058>
[pid 1208] close(10) = 0 <0.000062>
[pid 1208] close(11) = 0 <0.000053>
[pid 1208] socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 10 <0.000074>
[pid 1208] connect(10, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("212.216.112.222")}, 28) = 0 <0.000101>
[pid 1208] send(10, ";\355\1\0\0\1\0\0\0\0\0\0\4hell\0\0\1\0\1", 22, 0) = 22 <0.000086>
[pid 1208] gettimeofday({1062027850, 123564}, NULL) = 0 <0.000052>
[pid 1208] poll([{fd=10, events=POLLIN, revents=POLLIN}], 1, 5000) = 1 <0.126489>
[pid 1208] ioctl(10, FIONREAD, [97]) = 0 <0.000063>
[pid 1208] recvfrom(10, ";\355\201\203\0\1\0\0\0\1\0\0\4hell\0\0\1\0\1\0\0\6\0\1"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("212.216.112.222")}, [16]) = 97 <0.000064>
[pid 1208] close(10) = 0 <0.000064>
[pid 1208] getpid() = 1208 <0.000050>
[pid 1208] symlink("1.0.0.127:1208", "/home/d3vah/.phoenix/default/yfwb455x.slt/lock") = 0 <0.000152>
[pid 1208] unlink("/home/d3vah/.phoenix/default/yfwb455x.slt/lock") = 0 <0.000107>
[pid 1208] access("/home/d3vah/.phoenix/default/yfwb455x.slt", F_OK) = 0 <0.000085>
[
Ho capito cosa è..... aspetta la risposta da 222..x.x. che è il server dns che ho messo nel resolv.conf dato che ogni tanto il server dns di alice non reversa gli ip e mi da errore....
tnx fo all
_________________
Ciro Guariglia
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum