Cerca su HostingTalk.it(puoi inserire qualsiasi parola, termine, azienda, espressione). Scrivi e premi INVIO!
Loading

+ Rispondi alla Discussione
Pagina 1 di 2 12 UltimaUltima
Risultati da 1 a 15 di 24

Discussione: Input Output lento?

  1. #1
    HT Member
    Data Registrazione
    May 2009
    Messaggi
    55

    Input Output lento?

    Salve a tutti, mi sta capitando da ieri che in alcuni momento della giornata il server mi va leggermente lento, lanciando un hdparm a volte mi dà anche 5MB/s...
    hdparm -Tt /dev/sda

    /dev/sda:
    Timing cached reads: 1552 MB in 2.00 seconds = 775.97 MB/sec
    Timing buffered disk reads: 26 MB in 3.01 seconds = 8.64 MB/sec

    Ho controllato top e mytop e non ci sono valori esagerati (almeno da quello che ho notato)...

    top - 17:43:13 up 43 days, 8:04, 1 user, load average: 3.40, 5.92, 9.89
    Tasks: 251 total, 5 running, 240 sleeping, 0 stopped, 6 zombie
    Cpu(s): 36.1%us, 20.4%sy, 0.0%ni, 23.7%id, 19.3%wa, 0.1%hi, 0.5%si, 0.0%st
    Mem: 8072020k total, 7828336k used, 243684k free, 363908k buffers
    Swap: 36869152k total, 1669480k used, 35199672k free, 5969128k cached

    Per quanto riguarda la ram non mi supera i 2-2,5gb usati

    free -m
    total used free shared buffers cached
    Mem: 7882 7692 190 0 353 5796
    -/+ buffers/cache: 1542 6340
    Swap: 36005 1630 34374

    Ho installato munin per avere più un'idea di quello che stava succedendo e mi manda tipo ogni mezz'ora una email con questa dicitura:Load average
    WARNINGs: load is 16.33 (outside range [:10]).

    Le visite sono uguali a quelle ricevute altri giorni.. ho controllato anche il traffico credendo in un eventuale DDos ma è ancora tutto regolare..
    Forse sarà una cosa stupida, ma che a me manca sapere, come posso vedere quale applicativo mi rallenta il server se in top niente mi supera il 50% della cpu?

    Sul server è installato debian lenny, apache2 con suphp e mysql..
    Il server è un Intel Xeon Quad 4x 2.83+ GHz con 8gb di ram..

    Grazie a tutti



  2. #2
    Webhosting Guru L'avatar di CoolNetwork
    Data Registrazione
    Jun 2008
    Località
    Treviso
    Messaggi
    1,393

    Re: Input Output lento?

    19.3%wa

    è il disco che ti sta rallentando il sistema... a occhio..

    prova a installare sysstat (se non è già presente)

    apt-get install sysstat

    ed eseguire il seguente comando:

    iostat -x 5

    per sapere la % di utilizzo del disco

  3. #3
    HT Member
    Data Registrazione
    May 2009
    Messaggi
    55

    Re: Input Output lento?

    Mi esce questo:
    avg-cpu: %user %nice %system %iowait %steal %idle
    10,63 0,01 6,09 6,14 0,00 77,13

    Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
    sda 7,73 342,65 20,80 66,80 1528,41 3322,11 55,37 0,49 5,33 2,07 18,15
    sda1 7,71 342,46 20,80 66,79 1527,25 3320,51 55,35 0,48 5,31 2,07 18,13
    sda2 0,02 0,00 0,00 0,00 1,11 0,07 150,79 0,00 128,81 126,05 0,10
    sda3 0,00 0,18 0,00 0,01 0,04 1,53 130,01 0,00 60,07 41,00 0,05
    sdb 6,77 342,75 19,40 66,41 1461,50 3320,58 55,73 0,07 13,88 2,51 21,52
    sdb1 6,76 342,75 19,40 66,41 1460,41 3320,51 55,72 0,07 13,87 2,51 21,51
    sdb2 0,01 0,00 0,00 0,00 1,09 0,07 211,68 0,00 86,34 79,78 0,04
    sdb3 0,00 0,00 0,00 0,00 0,00 0,00 21,27 0,00 8,53 8,00 0,00
    md2 0,00 0,00 0,00 0,00 0,00 0,00 8,00 0,00 0,00 0,00 0,00
    md1 0,00 0,00 48,02 414,05 2222,59 3312,41 11,98 0,00 0,00 0,00 0,00

    avg-cpu: %user %nice %system %iowait %steal %idle
    37,86 0,00 17,03 3,75 0,00 41,36

    Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
    sda 1,20 147,40 43,20 22,20 956,80 1360,00 35,43 0,67 10,21 2,80 18,32
    sda1 1,20 147,40 43,20 22,20 956,80 1360,00 35,43 0,67 10,21 2,80 18,32
    sda2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sda3 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sdb 0,80 147,40 43,00 22,20 800,00 1360,00 33,13 1,35 20,77 4,09 26,64
    sdb1 0,80 147,40 43,00 22,20 800,00 1360,00 33,13 1,35 20,77 4,09 26,64
    sdb2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sdb3 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    md2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    md1 0,00 0,00 87,80 169,20 1753,60 1353,60 12,09 0,00 0,00 0,00 0,00

    avg-cpu: %user %nice %system %iowait %steal %idle
    38,62 0,00 19,06 13,33 0,00 28,99

    Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
    sda 18,20 150,80 67,20 53,00 5030,40 1636,80 55,47 15,36 127,74 5,18 62,32
    sda1 18,20 150,80 67,20 53,00 5030,40 1636,80 55,47 15,36 127,74 5,18 62,32
    sda2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sda3 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sdb 16,40 150,80 68,00 53,00 4561,60 1636,80 51,23 16,15 133,45 5,32 64,32
    sdb1 16,40 150,80 68,00 53,00 4561,60 1636,80 51,23 16,15 133,45 5,32 64,32
    sdb2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sdb3 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    md2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    md1 0,00 0,00 170,20 203,80 9595,20 1630,40 30,01 0,00 0,00 0,00 0,00

    avg-cpu: %user %nice %system %iowait %steal %idle
    39,07 0,00 23,78 10,66 0,00 26,49

    Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
    sda 0,60 166,40 19,60 58,00 313,60 1798,40 27,22 23,84 307,23 4,71 36,56
    sda1 0,60 166,40 19,60 58,00 313,60 1798,40 27,22 23,84 307,23 4,71 36,56
    sda2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sda3 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sdb 8,60 166,40 17,60 58,00 1731,20 1798,40 46,69 24,74 327,28 4,71 35,60
    sdb1 8,60 166,40 17,60 58,00 1731,20 1798,40 46,69 24,74 327,28 4,71 35,60
    sdb2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sdb3 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    md2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    md1 0,00 0,00 46,00 224,00 2041,60 1792,00 14,20 0,00 0,00 0,00 0,00

    avg-cpu: %user %nice %system %iowait %steal %idle
    22,55 0,00 18,35 22,50 0,00 36,59

    Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
    sda 0,00 146,40 2,00 129,80 33,60 2211,20 17,03 43,93 333,26 3,02 39,84
    sda1 0,00 146,40 2,00 129,80 33,60 2211,20 17,03 43,93 333,26 3,02 39,84
    sda2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sda3 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sdb 0,40 146,40 2,20 119,60 104,00 2073,60 17,88 52,84 385,67 3,40 41,44
    sdb1 0,40 146,40 2,20 119,60 104,00 2073,60 17,88 52,84 385,67 3,40 41,44
    sdb2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sdb3 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    md2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    md1 0,00 0,00 5,00 276,00 140,80 2208,00 8,36 0,00 0,00 0,00 0,00

    avg-cpu: %user %nice %system %iowait %steal %idle
    42,48 0,00 21,41 8,78 0,00 27,33

    Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
    sda 3,00 362,40 40,20 37,00 1166,40 3211,20 56,70 0,69 9,02 5,03 38,80
    sda1 3,00 362,40 40,20 37,00 1166,40 3211,20 56,70 0,69 9,02 5,03 38,80
    sda2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sda3 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sdb 6,00 362,40 38,20 48,00 1649,60 3355,20 58,06 1,82 89,10 6,40 55,20
    sdb1 6,00 362,40 38,20 48,00 1649,60 3355,20 58,06 1,82 89,10 6,40 55,20
    sdb2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sdb3 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    md2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    md1 0,00 0,00 87,20 399,80 2819,20 3198,40 12,36 0,00 0,00 0,00 0,00

    avg-cpu: %user %nice %system %iowait %steal %idle
    29,75 0,00 10,21 11,00 0,00 49,04

    Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
    sda 8,80 124,80 67,40 15,60 3531,20 1128,00 56,13 2,95 35,61 4,73 39,28
    sda1 8,80 124,80 67,40 15,60 3531,20 1128,00 56,13 2,95 35,61 4,73 39,28
    sda2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sda3 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sdb 5,80 124,80 44,60 14,80 1862,40 1121,60 50,24 0,73 12,24 6,10 36,24
    sdb1 5,80 124,80 44,60 14,80 1862,40 1121,60 50,24 0,73 12,24 6,10 36,24
    sdb2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sdb3 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    md2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    md1 0,00 0,00 126,40 139,00 5387,20 1112,00 24,49 0,00 0,00 0,00 0,00

    avg-cpu: %user %nice %system %iowait %steal %idle
    27,83 0,00 10,77 16,46 0,00 44,94

    Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
    sda 0,00 3176,80 5,00 81,00 56,00 19608,00 228,65 61,84 504,01 5,77 49,60
    sda1 0,00 3176,80 5,00 81,00 56,00 19608,00 228,65 61,84 504,01 5,77 49,60
    sda2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sda3 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sdb 0,00 3176,80 4,40 105,60 48,00 26264,00 239,20 33,16 301,44 3,24 35,60
    sdb1 0,00 3176,80 4,40 105,60 48,00 26264,00 239,20 33,16 301,44 3,24 35,60
    sdb2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    sdb3 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    md2 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00 0,00
    md1 0,00 0,00 9,40 3281,80 104,00 26254,40 8,01 0,00 0,00 0,00 0,00

  4. #4
    Webhosting Guru L'avatar di CoolNetwork
    Data Registrazione
    Jun 2008
    Località
    Treviso
    Messaggi
    1,393

    Re: Input Output lento?

    ok
    prova a scaricare questo tool per mysql

    http://mysqltuner.com/mysqltuner.pl

    per vedere se ti da qualche dritta per la ottimizzazione di my.cnf
    hai eseguito qualche modifica o usi quello di default?

    i 6 processi zombie che sono? (php-cgi ?)

  5. #5
    HT Member
    Data Registrazione
    May 2009
    Messaggi
    55

    Re: Input Output lento?

    MysqlTuner mi dice:
    General recommendations:
    Run OPTIMIZE TABLE to defragment tables for better performance
    MySQL started within last 24 hours - recommendations may be inaccurate
    Reduce your overall MySQL memory footprint for system stability
    Temporary table size is already large - reduce result set size
    Reduce your SELECT DISTINCT queries without LIMIT clauses
    Increase table_cache gradually to avoid file descriptor limits
    Variables to adjust:
    *** MySQL's maximum memory usage is dangerously high ***
    *** Add RAM before increasing MySQL buffer variables ***
    query_cache_limit (> 1M, or use smaller result sets)
    table_cache (> 3000)

    Come faccio a vedere i processi zombie?

  6. #6
    Webhosting Guru L'avatar di CoolNetwork
    Data Registrazione
    Jun 2008
    Località
    Treviso
    Messaggi
    1,393

    Re: Input Output lento?

    ps aux |grep defunct


    di mysqltuner riesci a mostrare tutto quello che da come output?

  7. #7
    HT Member
    Data Registrazione
    May 2009
    Messaggi
    55

    Re: Input Output lento?

    Ps aux mi ha dato tutti [php-cgi]

    mysqltuner dopo le modifiche mi da:

    -------- General Statistics --------------------------------------------------
    [--] Skipped version check for MySQLTuner script
    [OK] Currently running supported MySQL version 5.0.51a-24+lenny2-log
    [OK] Operating on 64-bit architecture

    -------- Storage Engine Statistics -------------------------------------------
    [--] Status: +Archive -BDB -Federated -InnoDB -ISAM -NDBCluster
    [--] Data in MyISAM tables: 586M (Tables: 27039)
    [--] Data in MEMORY tables: 124K (Tables: 53)
    [!!] Total fragmented tables: 893

    -------- Performance Metrics -------------------------------------------------
    [--] Up for: 34m 10s (481K q [234.942 qps], 30K conn, TX: 548M, RX: 33M)
    [--] Reads / Writes: 64% / 36%
    [--] Total buffers: 1.2G global + 2.6M per thread (3000 max threads)
    [!!] Maximum possible memory usage: 8.9G (115% of installed RAM)
    [OK] Slow queries: 0% (16/481K)
    [OK] Highest usage of available connections: 0% (16/3000)
    [OK] Key buffer size / total MyISAM indexes: 500.0M/223.7M
    [OK] Key buffer hit rate: 99.8% (98M cached / 183K reads)
    [OK] Query cache efficiency: 28.6% (71K cached / 251K selects)
    [OK] Query cache prunes per day: 0
    [OK] Sorts requiring temporary tables: 0% (2 temp sorts / 2K sorts)
    [!!] Temporary tables created on disk: 31% (1K on disk / 3K total)
    [OK] Thread cache hit rate: 99% (30 created / 30K connections)
    [!!] Table cache hit rate: 1% (3K open / 235K opened)
    [OK] Open file limit used: 37% (5K/16K)
    [OK] Table locks acquired immediately: 96% (245K immediate / 254K locks)

    -------- Recommendations -----------------------------------------------------
    General recommendations:
    Run OPTIMIZE TABLE to defragment tables for better performance
    MySQL started within last 24 hours - recommendations may be inaccurate
    Reduce your overall MySQL memory footprint for system stability
    Temporary table size is already large - reduce result set size
    Reduce your SELECT DISTINCT queries without LIMIT clauses
    Increase table_cache gradually to avoid file descriptor limits
    Variables to adjust:
    *** MySQL's maximum memory usage is dangerously high ***
    *** Add RAM before increasing MySQL buffer variables ***
    table_cache (> 3000)

  8. #8
    Webhosting Guru L'avatar di CoolNetwork
    Data Registrazione
    Jun 2008
    Località
    Treviso
    Messaggi
    1,393

    Re: Input Output lento?

    Prova a lanciare un optimize di tutto il DB

    mysqlcheck -A -u root -p -o

    per i zombie è normale .. visto che php viene eseguito da suphp per cui una volta finito l'output muore il processo (non è il massimo come prestazioni)

    che valori hai delle seguenti var in my.cnf

    max_connections
    key_buffer_size
    read_buffer_size
    sort_buffer_size
    wait_timeout

    se riesci a incollare una copia di my.cnf tanto meglio.

  9. #9
    HT Member
    Data Registrazione
    May 2009
    Messaggi
    55

    Re: Input Output lento?

    #
    # The MySQL database server configuration file.
    #
    # You can copy this to one of:
    # - "/etc/mysql/my.cnf" to set global options,
    # - "~/.my.cnf" to set user-specific options.
    #
    # One can use all long options that the program supports.
    # Run program with --help to get a list of available options and with
    # --print-defaults to see which it would actually understand and use.
    #
    # For explanations see
    # MySQL :: MySQL 5.1 Reference Manual :: 5.1.4 Server System Variables

    # This will be passed to all mysql clients
    # It has been reported that passwords should be enclosed with ticks/quotes
    # escpecially if they contain "#" chars...
    # Remember to edit /etc/mysql/debian.cnf when changing the socket location.
    [client]
    port = 3306
    socket = /var/run/mysqld/mysqld.sock

    # Here is entries for some specific programs
    # The following values assume you have at least 32M ram

    # This was formally known as [safe_mysqld]. Both versions are currently parsed.
    [mysqld_safe]
    socket = /var/run/mysqld/mysqld.sock
    nice = 0

    [mysqld]
    tmp_table_size = 256M
    max_heap_table_size = 256M
    #
    # * Basic Settings
    #
    user = mysql
    pid-file = /var/run/mysqld/mysqld.pid
    socket = /var/run/mysqld/mysqld.sock
    port = 3306
    basedir = /usr
    datadir = /var/lib/mysql
    tmpdir = /tmp
    language = /usr/share/mysql/english
    skip-external-locking
    #
    # Instead of skip-networking the default is now to listen only on
    # localhost which is more compatible and is not less secure.
    bind-address = 127.0.0.1
    #
    # * Fine Tuning
    #
    key_buffer = 500M
    max_allowed_packet = 16M
    thread_stack = 128K
    thread_cache_size = 8
    # This replaces the startup script and checks MyISAM tables if needed
    # the first time they are touched
    myisam-recover = BACKUP
    max_connections = 3000
    table_cache = 3000
    #thread_concurrency = 10
    #
    # * Query Cache Configuration
    #
    query_cache_limit = 1M
    query_cache_size = 500M
    #
    # * Logging and Replication
    #
    # Both location gets rotated by the cronjob.
    # Be aware that this log type is a performance killer.
    #log = /var/log/mysql/mysql.log
    #
    # Error logging goes to syslog. This is a Debian improvement
    #
    # Here you can see queries with especially long duration
    log_slow_queries = /var/log/mysql/mysql-slow.log
    #long_query_time = 2
    #log-queries-not-using-indexes
    #
    # The following can be used as easy to replay backup logs or for replication.
    # note: if you are setting up a replication slave, see README.Debian about
    # other settings you may need to change.
    #server-id = 1
    #log_bin = /var/log/mysql/mysql-bin.log
    expire_logs_days = 10
    max_binlog_size = 100M
    #binlog_do_db = include_database_name
    #binlog_ignore_db = include_database_name
    #
    # * BerkeleyDB
    #
    # Using BerkeleyDB is now discouraged as its support will cease in 5.1.12.
    skip-bdb
    #
    # * InnoDB
    #
    # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
    # Read the manual for more InnoDB related options. There are many!
    # You might want to disable InnoDB to shrink the mysqld process by circa 100MB.
    skip-innodb
    #
    # * Security Features
    #
    # Read the manual, too, if you want chroot!
    # chroot = /var/lib/mysql/
    #
    # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
    #
    # ssl-ca=/etc/mysql/cacert.pem
    # ssl-cert=/etc/mysql/server-cert.pem
    # ssl-key=/etc/mysql/server-key.pem



    [mysqldump]
    quick
    quote-names
    max_allowed_packet = 16M

    [mysql]
    #no-auto-rehash # faster start of mysql but no tab completition

    [isamchk]
    key_buffer = 16M

    #
    # * NDB Cluster
    #
    # See /usr/share/doc/mysql-server-*/README.Debian for more information.
    #
    # The following configuration is read by the NDB Data Nodes (ndbd processes)
    # not from the NDB Management Nodes (ndb_mgmd processes).
    #
    # [MYSQL_CLUSTER]
    # ndb-connectstring=127.0.0.1


    #
    # * IMPORTANT: Additional settings that can override those from this file!
    # The files must end with '.cnf', otherwise they'll be ignored.
    #
    !includedir /etc/mysql/conf.d/

    bind-address=127.0.0.1

  10. #10
    Webhosting Guru L'avatar di CoolNetwork
    Data Registrazione
    Jun 2008
    Località
    Treviso
    Messaggi
    1,393

    Re: Input Output lento?

    ah altra cosa se riesci a fornire ..

    collegati a mysql in console

    mysql -u root -p

    ed esegui la seguente request.

    show processlist;

    incolla poi l'output.
    (quit per uscire dopo)

  11. #11
    Webhosting Guru L'avatar di CoolNetwork
    Data Registrazione
    Jun 2008
    Località
    Treviso
    Messaggi
    1,393

    Re: Input Output lento?

    max_connections = 3000

    ci devi far connettere mezzo mondo?

  12. #12
    HT Member
    Data Registrazione
    May 2009
    Messaggi
    55

    Re: Input Output lento?

    max connections non dovrebbe essere uguale a 1/2 della ram? (invece di 4000 ho messo 3000) comunque ho pensato che visto ho la ram libera la sfrutto... avrò anche sbagliato, ma era una prova..

    mysql> show processlist;
    +-------+----------+-----------+------------+---------+------+-------+------------------+
    | Id | User | Host | db | Command | Time | State | Info |
    +-------+----------+-----------+------------+---------+------+-------+------------------+
    | 31134 | root | localhost | NULL | Query | 0 | NULL | show processlist |
    | 31144 | sito | localhost | dbsito | Sleep | 0 | | NULL |
    +-------+----------+-----------+------------+---------+------+-------+------------------+
    3 rows in set (0.00 sec)

  13. #13
    Webhosting Guru L'avatar di CoolNetwork
    Data Registrazione
    Jun 2008
    Località
    Treviso
    Messaggi
    1,393

    Re: Input Output lento?

    portalo a 300 (dovrebbe essere quello di default) ed esegui l'optimize delle tabelle...


    fammi sapere se noti miglioramenti ... poi ti controllo meglio my.cnf

  14. #14
    usu
    usu non è collegato
    HT Moderatore L'avatar di usu
    Data Registrazione
    Apr 2006
    Località
    Milano
    Messaggi
    1,728

    Re: Input Output lento?

    Scrivici qua queste info: Configurazioni ottimali VPS

  15. #15
    HT Member
    Data Registrazione
    May 2009
    Messaggi
    55

    Re: Input Output lento?

    Ho portato a 300 max connections e ottimizzato tutte le tabelle (molte sono uscite corrotte).. vediamo se in quest'ora mi arriva una email di munin come ha fatto tutta la giornata...

    Usu queste sono le informazioni:

    velocità cpu / singolo o multiprocessore:
    CPU number: 4
    model name : Intel(R) Xeon(R) CPU X3360 @ 2.83GHz
    model name : Intel(R) Xeon(R) CPU X3360 @ 2.83GHz
    model name : Intel(R) Xeon(R) CPU X3360 @ 2.83GHz
    model name : Intel(R) Xeon(R) CPU X3360 @ 2.83GHz
    cpu MHz : 2830.000
    cpu MHz : 2830.000
    cpu MHz : 2830.000
    cpu MHz : 2830.000
    cache size : 6144 KB
    cache size : 6144 KB
    cache size : 6144 KB
    cache size : 6144 KB
    Ram:
    Memory: used free (MB)
    1269 6612
    Tipo HD/configurazione:
    ATA Hitachi HDS72107 (Direct-Access)
    RAID 1 / software

    Sistema Operativo:
    Debian Lenny

    apache version: 2.2.9 (Debian)

    PHP version: 5.2.6-1+lenny3

    MySQL version: 5.0.51a

    TOP:
    top - 20:04:52 up 43 days, 10:25, 1 user, load average: 11.17, 8.92, 8.34
    Tasks: 248 total, 2 running, 235 sleeping, 0 stopped, 11 zombie
    Cpu(s): 10.6%us, 5.9%sy, 0.0%ni, 77.1%id, 6.1%wa, 0.0%hi, 0.2%si, 0.0%st
    Mem: 8072020k total, 7980704k used, 91316k free, 706012k buffers
    Swap: 36869152k total, 1672756k used, 35196396k free, 5339436k cached

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    12630 nomesito1 20 0 119m 11m 5332 R 25 0.1 0:00.13 php-cgi
    12628 nomesito2 20 0 0 0 0 Z 23 0.0 0:00.12 php-cgi <defunct>
    12631 nomesito3 20 0 0 0 0 Z 19 0.0 0:00.10 php-cgi <defunct>
    12634 root 20 0 0 0 0 Z 19 0.0 0:00.10 php-cgi <defunct>
    30714 root 20 0 271m 33m 9592 D 12 0.4 0:20.31 php
    20625 mysql 20 0 1262m 321m 5488 S 6 4.1 6:12.00 mysqld
    9690 www-data 20 0 454m 54m 1504 S 2 0.7 0:01.11 apache2
    9736 www-data 20 0 466m 56m 1912 S 2 0.7 0:01.05 apache2
    1 root 20 0 10312 608 572 S 0 0.0 0:11.48 init
    2 root 15 -5 0 0 0 S 0 0.0 0:00.01 kthreadd
    3 root RT -5 0 0 0 S 0 0.0 0:29.63 migration/0
    4 root 15 -5 0 0 0 S 0 0.0 2:47.85 ksoftirqd/0
    5 root RT -5 0 0 0 S 0 0.0 0:50.78 migration/1
    6 root 15 -5 0 0 0 S 0 0.0 2:20.60 ksoftirqd/1
    7 root RT -5 0 0 0 S 0 0.0 1:15.03 migration/2
    8 root 15 -5 0 0 0 S 0 0.0 1:31.28 ksoftirqd/2
    9 root RT -5 0 0 0 S 0 0.0 1:23.50 migration/3
    10 root 15 -5 0 0 0 S 0 0.0 1:10.42 ksoftirqd/3
    11 root 15 -5 0 0 0 S 0 0.0 0:22.30 events/0
    12 root 15 -5 0 0 0 S 0 0.0 0:18.18 events/1
    13 root 15 -5 0 0 0 S 0 0.0 1:13.45 events/2
    14 root 15 -5 0 0 0 S 0 0.0 0:27.10 events/3
    15 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper
    19 root RT -5 0 0 0 S 0 0.0 0:00.00 kstop/0
    20 root RT -5 0 0 0 S 0 0.0 0:00.00 kstop/1
    21 root RT -5 0 0 0 S 0 0.0 0:00.00 kstop/2
    22 root RT -5 0 0 0 S 0 0.0 0:00.00 kstop/3
    161 root 15 -5 0 0 0 S 0 0.0 0:00.00 kintegrityd/0
    162 root 15 -5 0 0 0 S 0 0.0 0:00.00 kintegrityd/1
    163 root 15 -5 0 0 0 S 0 0.0 0:00.00 kintegrityd/2
    164 root 15 -5 0 0 0 S 0 0.0 0:00.00 kintegrityd/3
    165 root 15 -5 0 0 0 S 0 0.0 0:06.77 kblockd/0
    166 root 15 -5 0 0 0 S 0 0.0 0:02.09 kblockd/1
    167 root 15 -5 0 0 0 S 0 0.0 0:04.88 kblockd/2
    168 root 15 -5 0 0 0 S 0 0.0 0:02.33 kblockd/3
    169 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpid
    170 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify
    238 root 15 -5 0 0 0 S 0 0.0 0:00.00 ata/0
    239 root 15 -5 0 0 0 S 0 0.0 0:00.00 ata/1

    KeepAlive On
    MaxKeepAliveRequests 100
    KeepAliveTimeout 15

    <IfModule mpm_prefork_module>
    StartServers 5
    MinSpareServers 5
    MaxSpareServers 10
    MaxClients 150
    MaxRequestsPerChild 0
    </IfModule>

    <IfModule mpm_worker_module>
    StartServers 2
    MaxClients 150
    MinSpareThreads 25
    MaxSpareThreads 75
    ThreadsPerChild 25
    MaxRequestsPerChild 0
    </IfModule>

    con find / -size +2000000k non ha dato risultatiuname - a:
    Linux ******** 2.6.28.4-xxxx-std-ipv6-64 #4 SMP Wed Sep 9 22:10:20 UTC 2009 x86_64 GNU/Linux

    ulimit -aH
    core file size (blocks, -c) unlimited
    data seg size (kbytes, -d) unlimited
    scheduling priority (-e) 0
    file size (blocks, -f) unlimited
    pending signals (-i) 71680
    max locked memory (kbytes, -l) 64
    max memory size (kbytes, -m) unlimited
    open files (-n) 16000
    pipe size (512 bytes, -p) 8
    POSIX message queues (bytes, -q) 819200
    real-time priority (-r) 0
    stack size (kbytes, -s) unlimited
    cpu time (seconds, -t) unlimited
    max user processes (-u) 71680
    virtual memory (kbytes, -v) unlimited
    file locks (-x) unlimited

    Spero di aver dato informazioni utili... nel frattempo munin mi ha inviato un altra email di
    Load average
    WARNINGs: load is 11.51 (outside range [:10])

Discussioni Simili

  1. Yahoo Mail: lento recapito?
    Di Antigenone nel forum E-mail e Managed Services
    Risposte: 3
    Ultimo Messaggio: 04-08-2010, 10:18
  2. Sito lento
    Di epi nel forum Shared/Managed Hosting
    Risposte: 3
    Ultimo Messaggio: 25-06-2009, 22:35
  3. Script lento o cosa?
    Di weadom nel forum Io Programmo
    Risposte: 3
    Ultimo Messaggio: 13-11-2007, 10:38
  4. No input file specified
    Di GrG nel forum Gestione Server Windows, Linux & CO
    Risposte: 11
    Ultimo Messaggio: 09-11-2007, 15:10
  5. lento nel post
    Di koala nel forum Gestione Server Windows, Linux & CO
    Risposte: 4
    Ultimo Messaggio: 22-06-2007, 15:33

Informazioni Discussione

Utenti che Stanno Visualizzando Questa Discussione

Ci sono attualmente 1 utenti che stanno visualizzando questa discussione. (0 utenti e 1 ospiti)

Tag per Questa Discussione

Segnalibri

Permessi di Scrittura

  • Tu non puoi inviare nuove discussioni
  • Tu non puoi inviare risposte
  • Tu non puoi inviare allegati
  • Tu non puoi modificare i tuoi messaggi