<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Tech-Blog: AMD64 and Debian</title>
    <link>http://tech-blog.mpierson.net/articles/2004/08/26/amd64-debian</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Mike Pierson's technology blog</description>
    <item>
      <title>AMD64 and Debian</title>
      <description>
&lt;p&gt;Some notes about my experience installing Debian on an AMD64...&lt;/p&gt;

&lt;h3&gt;hardware&lt;/h3&gt;
&lt;p&gt;It&amp;rsquo;s a refurbished E-Machines &lt;a href="http://www.tigerdirect.ca/applications/SearchTools/item-details.asp?EdpNo=541570&amp;CatId=1344"&gt;T6000&lt;/a&gt; with 512MB RAM and a 160GB Western Digital disk.  TigerDirect was clearing them out @ $850.  It&amp;rsquo;s a nice small box, and quiet too.&lt;/p&gt;

&lt;h3&gt;install&lt;/h3&gt;
&lt;p&gt;I tried to re-partition the disk to save the pre-installed Windoze OS with no luck.  Apparently the Mandrake install disk is able to re-partition XP disks but I was too impatient to burn a Mandrake CD.&lt;/p&gt;
&lt;p&gt;I was also too impatient to burn a &lt;a href="http://www.debian.org/ports/amd64/"&gt;Debian-AMD64&lt;/a&gt; CD, although this approach is apparently quite mature.  Instead, I chose the &lt;a href=""&gt;&amp;rsquo;chroot&amp;rsquo; approach&lt;/a&gt;. Bootstrapping with a normal x86 (backwards compatible CPU platform!) allows the 64-bit OS to be installed in a chroot environment.  The &lt;a href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;version=all&amp;exact=1&amp;keywords=debootstrap"&gt;debootstrap&lt;/a&gt; makes the process almost foolproof.  Not quite mike-proof as I was still groking chroots and &lt;a href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;version=all&amp;exact=1&amp;keywords=grub"&gt;grub&lt;/a&gt;.  The biggest mistake I made was failing to mount a proc file system in the chroot dir &lt;i&gt;before&lt;/i&gt; switching to the new root.&lt;/p&gt;
&lt;p&gt;FWIW, I think it may have been possible to install Debian from CompactFlash, via the USB reader -- maybe in another lifetime.&lt;/p&gt;

&lt;h3&gt;pure 64 port&lt;/h3&gt;
&lt;p&gt;The pure-64 port of Debian more-or-less duplicates the packages in Debian Sid. Packages that do not compile for 64-bit are excluded (e.g. OpenOffice), and some packages compile but segfault (e.g. Xprint).  I have yet to run XFree or even xfb via VNC, but have heard some success stories.  PostgreSQL works as advertised, as does the Blackdown Java port (1.4.2-rc1).&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s worth noting that the Debian community is still divided about the future of the AMD64 port.  The &lt;a href="http://lists.debian.org/debian-vote/2004/07/msg00019.html"&gt;controversy&lt;/a&gt; arose because some would like to see the pure-64 port become the official Debian AMD64 port, even though there is no clear way to support 32-bit applications. Bi-arch solutions tend to be klugy, although it seems to be a necessary evil.&lt;/p&gt;

&lt;h3&gt;performance&lt;/h3&gt;
&lt;p&gt;So far I can only provide circumstantial evidence about the relative performance of my AMD64 box.  It appears to be quite zippy when tasks are in-memory and sluggish when accessing the disk.  I need to add some RAM before benchmarking the H database.&lt;/p&gt;

&lt;h3&gt;specs&lt;/h3&gt;

&lt;pre&gt;
albert:/home/mpierson# cat /proc/cpuinfo 
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 4
model name      : AMD Athlon(tm) 64 Processor 3200+
stepping        : 8
cpu MHz         : 2000.162
cache size      : 1024 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow
bogomips        : 3923.96
TLB size        : 1088 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp
&lt;/pre&gt;

&lt;pre&gt;
mpierson@albert:~$ /usr/local/jdk/bin/java -version
java version "1.4.2-rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-rc1)
Java HotSpot(TM) 64-Bit Server VM (build Blackdown-1.4.2-rc1, mixed mode)
&lt;/pre&gt;

&lt;pre&gt;
0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8385 [K8T800 AGP] Host Bridge (rev 01)
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI bridge [K8T800 South]
0000:00:07.0 Communication controller: Conexant HSF 56k HSFi Modem (rev 01)
0000:00:0e.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
0000:00:0f.0 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
0000:00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
0000:00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [K8T800 South]
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78)
0000:00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
0000:00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
0000:00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
0000:01:00.0 VGA compatible controller: ATI Technologies Inc RV350 AP [Radeon 9600]
0000:01:00.1 Display controller: ATI Technologies Inc RV350 AP [Radeon 9600] (Secondary)
&lt;/pre&gt;

&lt;pre&gt;
albert:/home/mpierson# cat /proc/version 
Linux version 2.6.7-5-amd64-k8 (root@athlon.lowpingbastards.de) (gcc version 3.3.4 (Debian 1:3.3.4-3)) #1 Thu Jul 15 01:13:32 CEST 2004
&lt;/pre&gt;</description>
      <pubDate>Thu, 26 Aug 2004 12:03:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:8c455f0084b680f3f15a7d37a358499c</guid>
      <author>mop</author>
      <link>http://tech-blog.mpierson.net/articles/2004/08/26/amd64-debian</link>
      <category>Linux</category>
      <trackback:ping>http://tech-blog.mpierson.net/articles/trackback/102</trackback:ping>
    </item>
  </channel>
</rss>

