Categories
College Life Linux/BSD Navya Software

Gentoo, KDE, amd64!?

Not so long ago, I gave LG3D liveCD a shot only to end up losing a partition 😐 The included file-manager was at fault here. All I did was try browsing the contents of that partition and it’s gone!
I lost another partition. This was when I was trying out the pirated copy of MacOSX86 freely available on LAN. The Partition Utility on the installation DVD only looked good, but very deadly to actually use. Ah well.
All this activity was on the Seagate 160GB HDD. A faithful old chap from one of the best HD makers out there who sell in India. The other ill-fated hard drive is my infamous Samsung 160GB SATA HDD. My Gentoo installation on it got screwed when I was trying to rebuild the reiserfs partition’s trees. Apparently, it was filled with bad-blocks 🙁
So, made use of the other hard drive which recently suffered partition losses 😛
Installed gentoo-amd64 as usual. Emerged gnome-light and a few essentiall apps. Was happy for a few days until one day we had to test out our LAN TV setup for the upcoming cricket matches. VLC was our friend. Had to recompile the kernel with v4l support and stuff and VLC was ready to go. It picked up stuff pretty well from the TV card we had. The CPU usage was however, heavy compared to a similar setup on a neighbour’s 32-bit windows installation.

All that stuff for a month or so ago. Before the earlier post on LDFLAGS.

Now coming to the title of this post. I emerged KDE out of boredom after seeing a lower-end comp showing very good startup speeds for KDE apps on openSUSE. Surprised as I was, I quickly went to #gentoo-kde on freenode and asked around a bit on how to go about this KDE business. There are a lot of split ebuilds and takes a lot of time to go through. I began with one of those overlays which had a
“kde-lite” ebuild which was neat and just what I wanted 🙂
KDE is good. I usually prefer running a desktop with all-Qt/KDE or all GTK+/Gnome. I didn’t want to use Firefox or Linuxdcpp on KDE. So I had to get opera whose flashplugin wrapper never plays youtube or googlevideo :|. It too, like mozilla’s firefox binary, doesn’t render indic-fonts properly. Konqueror does it fine. But it seems to be unsupported by many websites even though Konqueror claims standards compliance.
Yestereve, we had a meeting to discuss MEMP’s current development status and plans for the future. Arun asked us if we are going to support amd64 and asked us “will we be able to convince that plain x86 installation is better than amd64”? Suprised as U was, on asking him the howcomes, he logged into my comp and fired up firefox and mplayer and did the same on his 32-bit gentoo Os and compared the ‘htop’ monitor. Firefox and mplayer on my comp was unusually, strangely, using up too much memory. Is the 64-bit OS at fault here? Is it worth all the trouble? Or should I just install a 32-bit Os and be happy with it?
(this post is kind of written in a hurry)

Categories
Linux/BSD Software

Typical Memory Usage on my Gentoo-Gnome Desktop

Yo all,
It’s been a long time and I’d like to start of by introducing a python script that stdouts a well-formatted table of memory usage per process. Having decided to run the script as ‘root’ on my 512MB box this is what I had in store:

clueless ~ # python ~nareshov/Desktop/Shared/Gentoo/ps_mem.py
Private + Shared = RAM used Program

0.0 KiB + 108.0 KiB = 108.0 KiB unlinkd
32.0 KiB + 184.0 KiB = 216.0 KiB gpm
0.0 KiB + 220.0 KiB = 220.0 KiB syslog-ng
0.0 KiB + 224.0 KiB = 224.0 KiB udevd
24.0 KiB + 260.0 KiB = 284.0 KiB hald-addon-stor
0.0 KiB + 308.0 KiB = 308.0 KiB dbus-launch
0.0 KiB + 312.0 KiB = 312.0 KiB sshd
0.0 KiB + 312.0 KiB = 312.0 KiB agetty
52.0 KiB + 292.0 KiB = 344.0 KiB init
40.0 KiB + 308.0 KiB = 348.0 KiB hald-addon-keyb
56.0 KiB + 292.0 KiB = 348.0 KiB xfs
56.0 KiB + 308.0 KiB = 364.0 KiB ssh-agent
60.0 KiB + 308.0 KiB = 368.0 KiB hald-addon-acpi
0.0 KiB + 388.0 KiB = 388.0 KiB avahi-dnsconfd
0.0 KiB + 424.0 KiB = 424.0 KiB gnome-keyring-d
108.0 KiB + 320.0 KiB = 428.0 KiB gnome-pty-helpe
0.0 KiB + 440.0 KiB = 440.0 KiB hald-runner
48.0 KiB + 428.0 KiB = 476.0 KiB mapping-daemon
344.0 KiB + 276.0 KiB = 620.0 KiB wineserver
4.0 KiB + 628.0 KiB = 632.0 KiB su
60.0 KiB + 580.0 KiB = 640.0 KiB gdm
240.0 KiB + 408.0 KiB = 648.0 KiB ntpd
96.0 KiB + 588.0 KiB = 684.0 KiB gam_server
0.0 KiB + 780.0 KiB = 780.0 KiB ssh
352.0 KiB + 484.0 KiB = 836.0 KiB dbus-daemon
692.0 KiB + 340.0 KiB = 1.0 MiB nmbd
0.0 KiB + 1.1 MiB = 1.1 MiB mozilla-launche
416.0 KiB + 808.0 KiB = 1.2 MiB avahi-daemon
0.0 KiB + 1.2 MiB = 1.2 MiB bonobo-activati
800.0 KiB + 588.0 KiB = 1.4 MiB smbd
248.0 KiB + 1.2 MiB = 1.4 MiB explorer.exe
556.0 KiB + 900.0 KiB = 1.4 MiB hald
16.0 KiB + 1.5 MiB = 1.5 MiB gnome-vfs-daemo
1.0 MiB + 1.4 MiB = 2.4 MiB gconfd-2
2.0 MiB + 644.0 KiB = 2.6 MiB squid
468.0 KiB + 2.4 MiB = 2.9 MiB gnome-screensav
624.0 KiB + 2.6 MiB = 3.2 MiB gnome-settings-
1.9 MiB + 1.3 MiB = 3.3 MiB bash
196.0 KiB + 3.1 MiB = 3.3 MiB gnome-session
1.0 MiB + 2.6 MiB = 3.6 MiB gnome-power-man
980.0 KiB + 3.4 MiB = 4.4 MiB notification-ar
1.1 MiB + 3.3 MiB = 4.4 MiB clock-applet
1.1 MiB + 3.6 MiB = 4.7 MiB mixer_applet2
1.6 MiB + 4.0 MiB = 5.5 MiB notification-da
2.4 MiB + 4.4 MiB = 6.9 MiB metacity
2.5 MiB + 5.3 MiB = 7.8 MiB wnck-applet
4.7 MiB + 4.7 MiB = 9.5 MiB gnome-panel
4.9 MiB + 5.5 MiB = 10.4 MiB nautilus
10.3 MiB + 7.5 MiB = 17.8 MiB gnome-terminal
27.4 MiB + 5.5 MiB = 32.9 MiB linuxdcpp
37.0 MiB + 1.8 MiB = 38.9 MiB BitSpirit.exe
36.8 MiB + 8.5 MiB = 45.3 MiB banshee
63.0 MiB + 4.5 MiB = 67.5 MiB Xorg
89.4 MiB + 11.4 MiB = 100.8 MiB firefox-bin

Private + Shared = RAM used Program

After coming back to my senses I started thinking about possible loopholes in my Gentoo install. Let’s have

clueless ~ # uname -a
Linux clueless 2.6.19-gentoo-r4 #7 Sat Jan 20 21:56:30 IST 2007 x86_64 AMD Athlon(tm) 64 Processor 2800+ AuthenticAMD GNU/Linux

and

clueless ~ # emerge --info
Portage 2.1.2-r5 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.12.9
Timestamp of tree: Thu, 01 Feb 2007 22:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python: 2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.19.2-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://navya/gentoo http://gentoo.osuosl.org"
LINGUAS="en_US ja kn_IN"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=" "
SYNC="rsync://navya/gentoo-portage/"
USE="X aac aalib acl acpi alsa amd64 avahi bash-completion beagle berkdb bitmap-fonts bzip2 cairo cdr cjk cli cracklib crypt cscope cups dbus directfb dlloader dri dvd dvdr emboss encode esd examples fam ffmpeg firefox flac fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv imagemagick ipv6 isdnlog jpeg ldap libg++ libnotify mad midi mikmod mp3 mpeg ncurses nls nptl nptlonly ogg openal openexr opengl oss pam pcre pdf perl png ppds python quicktime readline reflection ruby samba scope sdl session spell spl ssl svg tcpd theora threads truetype truetype-fonts type1-fonts udev unicode vim-syntax vorbis x264 xml xorg xv xvid zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US ja kn_IN" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS

Help!