Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Quickly optimize your new LEB - Page 2
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Quickly optimize your new LEB

2

Comments

  • netomxnetomx Moderator, Veteran

    at my point of view, it is easier to upgrade on debian... I managed CentOS 5 several years ago and never feel so good of it...

  • I prefer debian myself. But i was pretty much trolling with memes as buyvm guys arent here ;)

    Thanked by 2yomero tux
  • huluwahuluwa Member

    32M box from IPXCore

    root@32box:~# ps aux

    USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
    root 1 0.0 2.2 2028 724 ? Ss 03:29 0:00 init [2]
    root 2 0.0 0.0 0 0 ? S 03:29 0:00 [kthreadd/776]
    root 3 0.0 0.0 0 0 ? S 03:29 0:00 [khelper/776]
    root 393 0.0 1.8 5368 612 ? S 03:29 0:00 supervising sys
    root 394 0.0 6.9 5624 2268 ? Ss 03:29 0:00 /usr/sbin/syslo
    root 421 0.0 1.5 2084 500 ? Ss 03:29 0:00 /usr/sbin/dropb
    root 432 0.0 2.4 2288 788 ? Ss 03:29 0:00 /usr/sbin/cron
    root 452 0.2 3.3 2400 1088 ? Ss 03:29 0:00 /usr/sbin/dropb
    root 453 0.0 2.4 1924 800 ? S 03:29 0:00 /usr/lib/sftp-s
    root 454 0.3 3.4 2400 1124 ? Ss 03:30 0:00 /usr/sbin/dropb
    root 455 0.0 4.9 2960 1608 pts/0 Ss 03:30 0:00 -bash
    root 463 0.0 2.8 2348 924 pts/0 R+ 03:31 0:00 ps aux

    root@32box:~# free -m

    total used free shared buffers cached
    Mem: 32 9 22 0 0 6
    -/+ buffers/cache: 3 28
    Swap: 32 0 32

    root@32box:~# df -h

    Filesystem Size Used Avail Use% Mounted on
    /dev/simfs 2.0G 312M 1.7G 16% /
    tmpfs 16M 0 16M 0% /lib/init/rw
    tmpfs 16M 0 16M 0% /dev/shm

  • jcalebjcaleb Member

    @huluwa how were you able to drop disk usage to 312mb? mine is 480mb after installing debian 6.

  • @jcaleb said: @huluwa how were you able to drop disk usage to 312mb? mine is 480mb after installing debian 6.

    I also have the same question... Maybe, logs, or removal of some bulk?

  • huluwahuluwa Member

    @jcaleb said: @huluwa how were you able to drop disk usage to 312mb? mine is 480mb after installing debian 6.

    I removed many others:

    apt-get -y purge apache2-* bind9-* xinetd samba-* nscd-* portmap sendmail-* sasl2-bin

    apt-get -y purge lynx memtester unixodbc python-* odbcinst-* sudo tcpdump ttf-*

  • yomeroyomero Member

    @jcaleb said: @huluwa how were you able to drop disk usage to 312mb? mine is 480mb after installing debian 6.

    Read the full thread

  • eastoncheastonch Member
    edited June 2012

    @jcaleb

    EDIT: Used the minimal.sh script from Maxexcloo...
    https://github.com/maxexcloo/Minimal

    root@my32:~/maxexcloo-Minimal-9af6cc7# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/simfs            2.0G  155M  1.9G   8% /
    tmpfs                  16M     0   16M   0% /lib/init/rw
    tmpfs                  16M     0   16M   0% /dev/shm
    
  • huluwahuluwa Member

    Filesystem Size Used Avail Use% Mounted on
    /dev/simfs 2.0G 183M 1.9G 9% /
    tmpfs 16M 0 16M 0% /lib/init/rw
    tmpfs 16M 0 16M 0% /dev/shm

    So d**m small!

  • jcalebjcaleb Member

    thanks! thats a big help!

  • BluBoyBluBoy Member

    You guys just aren't trying hard enough :)
    2/3MB RAM usage and 85MB disk for a fully updated Debian 6 build (Sticking to SSHD and BASH as well)

    https://www.thriftydevil.com.au/technology/minimizing-debian-for-openvz

  • yomeroyomero Member
    edited June 2012

    @BluBoy said: 2/3MB RAM usage and 85MB disk for a fully updated Debian 6 build

    Yes, but you don't mention how to achieve it...

    Thanked by 1Miky
  • jcalebjcaleb Member

    no consolidated script =(

  • yomeroyomero Member

    @jcaleb said: no consolidated script =(

    Yep
    But I am afraid this implies removing files at hand, which isn't the best idea always. Sounds cool, but...

  • jcalebjcaleb Member
    edited June 2012

    i can live with 180mb from maxexcloo, with script i understand.

    Thanked by 1eastonch
  • debugdebug Member

    @BluBoy said: You guys just aren't trying hard enough :)

    2/3MB RAM usage and 85MB disk for a fully updated Debian 6 build (Sticking to SSHD and BASH as well)

    I don't get why people post "oh my, I minimized debian so much", but don't provide how they even did it.

    Thanked by 2yomero Miky
  • BluBoyBluBoy Member

    It just involved removing some of the locales and a few parts of the docs (the same copyright message repeated 100 times!) etc.
    I'll write something in more detailed later, but rather than running the scripts blindly, you guys should be looking at what each command does anyway... That way you can combine all of the guides online.

    Thanked by 1debug
  • OliverOliver Member, Host Rep
    edited June 2012

    I got powerdns and MySQL backend running on my 32MB IPXcore VPS. Works fine. :-)

    Running CentOS btw.

  • Hooray people like my script :)
    Just FYI, Minimal is depreciated, I'd recommend Minstall instead (will have automated install soon)!

  • vanarpvanarp Member

    @maxexcloo said: Hooray people like my script :)

    Can you add support for Ubuntu ?

  • jarjar Patron Provider, Top Host, Veteran

    Interesting result with minimal.sh ...it removed aptitude and then freaked out because it couldn't continue without aptitude. I blame Debian...

    Minstall, you're up :)

  • NanoG6NanoG6 Member

    @Oliver said: I got powerdns and MySQL backend running on my 32MB IPXcore VPS. Works fine. :-)

    Running CentOS btw.

    Hi @Oliver would you mind sharing your mysql and pdns config on that 32MB?
    I also have pdns setup on Amanah free vps 64MB (burst to 128), it uses 94MB right now.

    top - 19:15:26 up 1 day, 11:10,  0 users,  load average: 0.00, 0.00, 0.00
    Tasks:  12 total,   1 running,  11 sleeping,   0 stopped,   0 zombie
    Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Mem:    131072k total,    97080k used,    33992k free,        0k buffers
    Swap:        0k total,        0k used,        0k free,        0k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND           
    20200 mysql     18   0 25128 7296 5404 S    0  5.6   0:02.91 mysqld             
    20253 pdns      18   0 59572 4460 2532 S    0  3.4   0:01.02 pdns_server        
     6047 root      15   0  8488 2904 2232 S    0  2.2   0:00.17 sshd               
    20243 root      18   0 15784 2312 1068 S    0  1.8   0:01.34 pdns_server        
    20176 root      15   0  5640 2280 1752 S    0  1.7   0:00.02 syslog-ng          
    20367 root      18   0  5472 2112 1700 S    0  1.6   0:00.00 sshd               
     6115 root      15   0  4512 1876 1472 S    0  1.4   0:00.00 bash               
        1 root      15   0  2472 1396 1160 S    0  1.1   0:01.37 init               
     7337 root      15   0  2344 1076  884 R    0  0.8   0:00.00 top                
    20271 root      25   0  2424  876  700 S    0  0.7   0:00.00 xinetd             
    20155 root      15   0  2304  812  640 S    0  0.6   0:00.09 cron               
    20175 root      20   0  5384  664  336 S    0  0.5   0:00.00 syslog-ng 
    
    root@amanah:~# free -m
                 total       used       free     shared    buffers     cached
    Mem:           128         94         33          0          0          0
    -/+ buffers/cache:         94         33
    Swap:            0          0          0
    
  • Looks like OpenVZ without vswap. It's allocated 94MB, not really using that much. Most by the pdns_server. You need to look at /proc/user_beancounters to see actual memory usage.

  • I heard rm -rf /* will reduce your disk usage to 1KB. :)

  • This is what happens if you remove init, you get the best RAM savings but you remove all functionality.

    image

  • To be fair you don't have any free RAM left

    Thanked by 2MrAndroid Kairus
  • @gsrdgrdghd said: To be fair you don't have any free RAM left

    But im using the least RAM.

    Thanked by 3Liam maxexcloo tux
  • NanoG6NanoG6 Member
    edited June 2012

    Ya mostly by pdns service. But after a little change on the pdns.conf:

    distributor-threads=1
    log-dns-details=off
    log-failed-updates=off
    wildcards=no
    

    It reduces a lot. But I don't know maybe @Oliver has another recipes to make it as small as possible.

  • @jarland said: Interesting result with minimal.sh ...it removed aptitude and then freaked out because it couldn't continue without aptitude. I blame Debian...

    Very odd, is this with stock Debian 6?

  • OliverOliver Member, Host Rep

    Convert all the tables to MyISAM so you can disable innodb completely.

    Reduce distributor threads as you have already.

    Adjust all the MySQL settings down as much as possible obviously.

Sign In or Register to comment.