<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ottimizzare server per il web]]></title><description><![CDATA[<p dir="auto">Salve a tutti. Ho preso un server e per passarmi il tempo vorrei utilizzarlo solo ed esclusivamente per il web (apache, php, mysql, postfix, ftp,cron). Premesso che ho installato Ubuntu, mi sono cimentato per risparmiare risorse come RAM e CPU per tirare all'osso il mio server. Tanto per essere chiaro, ho cominciato a rimuire i servizi che non mi piacevano o cmq che a me personalmente non mi servivano.<br />
al comando pstree comapre adesso questo:</p>
<pre><code>root@server:~# pstree
init-+-apache2---26*[apache2]
     |-cron
     |-dovecot-+-dovecot-auth
     |         |-3*[imap-login]
     |         `-3*[pop3-login]
     |-events/0
     |-7*[getty]
     |-khelper
     |-ksoftirqd/0
     |-kthread-+-aio/0
     |         |-ata/0
     |         |-ata_aux
     |         |-cqueue/0
     |         |-kblockd/0
     |         |-khubd
     |         |-kjournald
     |         |-kpsmoused
     |         |-kseriod
     |         |-kswapd0
     |         |-2*[pdflush]
     |         |-xenbus
     |         `-xenwatch
     |-master-+-pickup
     |        |-qmgr
     |        `-tlsmgr
     |-migration/0
     |-mysqld_safe-+-logger
     |             `-mysqld---16*[{mysqld}]
     |-sshd---sshd---bash---pstree
     |-udevd
     |-vsftpd
     `-watchdog/0
root@server:~#
</code></pre>
<p dir="auto">adesso vi chiedo..ma sti maledetti "getty" e khelper che diavolo sono??<br />
quando faccio ps x  mi compare questo:</p>
<pre><code>root@server:~# ps x
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:00 /sbin/init
    2 ?        S&lt;     0:00 [migration/0]
    3 ?        SN     0:00 [ksoftirqd/0]
    4 ?        S&lt;     0:00 [watchdog/0]
    5 ?        S&lt;     0:00 [events/0]
    6 ?        S&lt;     0:00 [khelper]
    7 ?        S&lt;     0:00 [kthread]
    9 ?        S&lt;     0:00 [xenwatch]
   10 ?        S&lt;     0:00 [xenbus]
   16 ?        S&lt;     0:00 [kblockd/0]
   17 ?        S&lt;     0:00 [cqueue/0]
   21 ?        S&lt;     0:00 [khubd]
   23 ?        S&lt;     0:00 [kseriod]
   82 ?        S      0:00 [pdflush]
   83 ?        S&lt;     0:00 [kswapd0]
   84 ?        S&lt;     0:00 [aio/0]
  214 ?        S&lt;     0:00 [kpsmoused]
  243 ?        S&lt;     0:00 [ata/0]
  244 ?        S&lt;     0:00 [ata_aux]
  251 ?        S&lt;     0:00 [kjournald]
  326 ?        S&lt;s    0:00 /sbin/udevd --daemon
  992 tty4     Ss+    0:00 /sbin/getty 38400 tty4
  993 tty5     Ss+    0:00 /sbin/getty 38400 tty5
  998 tty2     Ss+    0:00 /sbin/getty 38400 tty2
  999 tty3     Ss+    0:00 /sbin/getty 38400 tty3
 1000 tty6     Ss+    0:00 /sbin/getty 38400 tty6
 1080 ?        Ss     0:00 /usr/sbin/sshd
 1128 ?        S      0:00 /bin/sh /usr/bin/mysqld_safe
 1182 ?        S      0:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
 1817 ?        Ss     0:00 /usr/lib/postfix/master
 1833 ?        S      0:00 /usr/sbin/vsftpd
 1845 ?        Ss     0:00 /usr/sbin/dovecot
 1853 ?        S      0:00 dovecot-auth
 1901 ?        Ss     0:00 /usr/sbin/cron
 1920 ?        Ss     0:01 /usr/sbin/apache2 -k start
 1941 xvc0     Ss+    0:00 /sbin/getty 38400 xvc0
 1942 tty1     Ss+    0:00 /sbin/getty 38400 tty1
 8066 ?        S      0:00 [pdflush]
14846 ?        Ss     0:00 sshd: root@pts/0
14848 pts/0    Ss     0:00 -bash
15187 pts/0    R+     0:00 ps x
root@server:~#
</code></pre>
<p dir="auto">cosa posso rimuovere ancora?</p>
]]></description><link>https://dev.connect.gt/topic/102426/ottimizzare-server-per-il-web</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 08:26:31 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/102426.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 May 2009 14:41:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ottimizzare server per il web on Sun, 31 May 2009 11:07:36 GMT]]></title><description><![CDATA[<p dir="auto">Allora non togliere i due processi legati a Xen, perché sono indispensabili.<br />
A occhio e croce dovresti aver installato Apache Worker. Forse risparmieresti di più se usassi Nginx o uns server leggero.<br />
Se non usi InnoDB, disabilita il supporto in MySQL; dovresti guadagnare una 10 di megabyte di ram tranquillamente.</p>
]]></description><link>https://dev.connect.gt/post/833728</link><guid isPermaLink="true">https://dev.connect.gt/post/833728</guid><dc:creator><![CDATA[valent]]></dc:creator><pubDate>Sun, 31 May 2009 11:07:36 GMT</pubDate></item><item><title><![CDATA[Reply to Ottimizzare server per il web on Sun, 31 May 2009 10:59:19 GMT]]></title><description><![CDATA[<p dir="auto">si è uno XEN un VPS come OS monto Ubuntu e mi trovo su netsons</p>
]]></description><link>https://dev.connect.gt/post/833732</link><guid isPermaLink="true">https://dev.connect.gt/post/833732</guid><dc:creator><![CDATA[eros23]]></dc:creator><pubDate>Sun, 31 May 2009 10:59:19 GMT</pubDate></item><item><title><![CDATA[Reply to Ottimizzare server per il web on Sun, 31 May 2009 10:57:30 GMT]]></title><description><![CDATA[<p dir="auto">Hai una vps basata su Xen?<br />
Non è un vero server dedicato, ma uno virtuale?</p>
]]></description><link>https://dev.connect.gt/post/833727</link><guid isPermaLink="true">https://dev.connect.gt/post/833727</guid><dc:creator><![CDATA[valent]]></dc:creator><pubDate>Sun, 31 May 2009 10:57:30 GMT</pubDate></item><item><title><![CDATA[Reply to Ottimizzare server per il web on Thu, 28 May 2009 15:50:18 GMT]]></title><description><![CDATA[<p dir="auto">khelper è fondamentale, serve per la gestione automatica dell'hardware mentre getty è il terminale virtuale e serve per effettuare il login fisico sul server</p>
<p dir="auto">Nel tuo caso puoi rimuovere xen se non ti serve la virtualizzazione, dovecot che è un server di posta e vsftpd se non ti server il servizio ftp</p>
]]></description><link>https://dev.connect.gt/post/833725</link><guid isPermaLink="true">https://dev.connect.gt/post/833725</guid><dc:creator><![CDATA[paolino]]></dc:creator><pubDate>Thu, 28 May 2009 15:50:18 GMT</pubDate></item></channel></rss>