Saturday, March 28, 2009

20090328 - Windows Vista - leaner than Windows 7?

Following on from my tests earlier, here's a Vista Enterprise 512MB machine freshly installed with 512MB memory, and no paging file:



babelfish:~ crispi$ ps -e -o pid,rss,command | grep -i vmx | grep -v grep
8821 697112 /Library/Application Support/VMware Fusion/vmware-vmx -E en -D krof3I/KOq0DLgAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= -# product=1;name=VMware Fusion;version=2.0.2;buildnumber=146107;licensename=VMware Fusion for Mac OS;licenseversion=6.0 build-146107; -@ pipe=/var/folders/7R/7Rq7evMGH9qZLSXoCGYx6k+++TI/-Tmp-//vmware-crispi/vmx998c9980be2dd6b0;readyEvent=25 /Users/crispi/vmware/Vista.vmwarevm/Vista.vmx

Remember we were comparing this with Windows 7:

12607 706252 /Library/Application Support/VMware Fusion/vmware-vmx -E en -D mJw7K7usuM8LJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= -# product=1;name=VMware Fusion;version=2.0.2;buildnumber=146107;licensename=VMware Fusion for Mac OS;licenseversion=6.0 build-146107; -@ pipe=/var/folders/7R/7Rq7evMGH9qZLSXoCGYx6k+++TI/-Tmp-//vmware-crispi/vmxc6654b5eff7f6b21;readyEvent=27 /Users/crispi/vmware/Windows7.vmwarevm/Windows7.vmx


Conclusion? Don't believe all the hype. Windows 7 does not appear to use less memory than Vista.

Wednesday, March 25, 2009

20090325 - Download updated RPMs for CentOS - even without Centos installed

(Install the Bare essentials in /test)
(Mount Disk1/DVD):


[root@MELLIDPOC99 ~]# mount /dev/cdrom /mnt
[root@MELLIDPOC99 ~]# mkdir /test

(Install 3 RPMs) :
[root@MELLIDPOC99 ~]# rpm -r /test --nodeps --noscripts -ivh /mnt/CentOS/basesystem-8.0-5.1.1.el5.centos.noarch.rpm
warning: /mnt/CentOS/basesystem-8.0-5.1.1.el5.centos.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:basesystem ########################################### [100%]

[root@MELLIDPOC99 ~]# rpm -r /test --nodeps --noscripts -ivh /mnt/CentOS/filesystem-2.4.0-1.el5.centos.x86_64.rpm
warning: /mnt/CentOS/filesystem-2.4.0-1.el5.centos.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:filesystem ########################################### [100%]

[root@MELLIDPOC99 ~]# rpm -r /test --nodeps --noscripts -ivh /mnt/CentOS/centos-release-5-2.el5.centos.x86_64.rpm
warning: /mnt/CentOS/centos-release-5-2.el5.centos.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:centos-release ########################################### [100%]


(Mount each CD in turn, or use the DVD):
[root@MELLIDPOC99 ~]# mount /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@MELLIDPOC99 ~]# for rpm in /mnt/CentOS/*.rpm; do rpm -r /test -ivh --nodeps --ignorearch --force --justdb --quiet --nosignature $rpm 2> /dev/null ; done
[root@MELLIDPOC99 ~]# umount /mnt

(May need to set up a proxy (especially if in a NTLM environment))
:
[root@MELLIDPOC99 ~]# export http_proxy=http://melwiscap02.global.thenational.com:5865
[root@MELLIDPOC99 ~]# export https_proxy=${http_proxy}
[root@MELLIDPOC99 ~]# yum install yum-downloadonly
base 100% |=========================| 1.1 kB 00:00
primary.xml.gz 100% |=========================| 1.1 MB 00:05
base : ################################################## 3223/3223
updates 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 434 kB 00:02
updates : ################################################## 959/959
addons 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 157 B 00:00
extras 100% |=========================| 1.1 kB 00:00
primary.xml.gz 100% |=========================| 98 kB 00:00
extras : ################################################## 266/266
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package yum-downloadonly.noarch 0:1.1.10-9.el5.centos set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
yum-downloadonly noarch 1.1.10-9.el5.centos base 9.0 k

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 9.0 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): yum-downloadonly-1 100% |=========================| 9.0 kB 00:00
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) " from http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: yum-downloadonly ######################### [1/1]

Installed: yum-downloadonly.noarch 0:1.1.10-9.el5.centos
Complete!

(Create a destination for the RPMs):
[root@MELLIDPOC99 ~]# mkdir /test/updates

(Grab away):

[root@MELLIDPOC99 /]# yum -q -y --installroot=/test --downloaddir=/test/updates --downloadonly update
exiting because --downloadonly specified

[root@MELLIDPOC99 /]# ls -1 /test/updates/ | head -20
avahi-0.6.16-1.el5_2.1.i386.rpm
avahi-0.6.16-1.el5_2.1.x86_64.rpm
avahi-glib-0.6.16-1.el5_2.1.i386.rpm
avahi-glib-0.6.16-1.el5_2.1.x86_64.rpm
bind-libs-9.3.4-6.0.3.P1.el5_2.i386.rpm
bind-libs-9.3.4-6.0.3.P1.el5_2.x86_64.rpm
bind-utils-9.3.4-6.0.3.P1.el5_2.x86_64.rpm
bluez-libs-3.7-1.1.i386.rpm
bluez-libs-3.7-1.1.x86_64.rpm
bluez-utils-3.7-2.2.el5.centos.x86_64.rpm
bzip2-1.0.3-4.el5_2.x86_64.rpm
bzip2-libs-1.0.3-4.el5_2.i386.rpm
bzip2-libs-1.0.3-4.el5_2.x86_64.rpm
cups-1.2.4-11.18.el5_2.3.x86_64.rpm
cups-libs-1.2.4-11.18.el5_2.3.i386.rpm
cups-libs-1.2.4-11.18.el5_2.3.x86_64.rpm
dbus-1.0.0-7.el5_2.1.i386.rpm
dbus-1.0.0-7.el5_2.1.x86_64.rpm
dbus-x11-1.0.0-7.el5_2.1.x86_64.rpm
dhcpv6-client-1.0.10-4.el5_2.3.x86_64.rpm

Also, can also do just this to get all the RPMs from a base distribution:

[root@MELLIDPOC99 /]# yum -y --installroot=/test --downloaddir=/test/updates --downloadonly groupinstall Base