Hydra

From Wikitech
(Difference between revisions)
Jump to: navigation, search
(building packages)
Line 40: Line 40:
 
  $ pkgtrans -s /var/spool/pkg `pwd`/WMFprogram.sparc.pkg WMFprogram
 
  $ pkgtrans -s /var/spool/pkg `pwd`/WMFprogram.sparc.pkg WMFprogram
 
  $ pkgadd -d WMFprogram.sparc.pkg
 
  $ pkgadd -d WMFprogram.sparc.pkg
 +
 +
== Benchmarks ==
 +
 +
{|
 +
|threads || req/s || time per request
 +
|-
 +
| 1 || 2.34 || 455 ms
 +
|-
 +
| 2 || 4.84 || 208 ms
 +
|-
 +
| 4 || 8.87 || 130 ms
 +
|-
 +
| 6 || 13.7 || 71 ms
 +
|-
 +
| 8 || 16.5 || 59 ms
 +
|-
 +
| 12 || 20.32 || 47 ms
 +
|-
 +
| 16 || 19.98 || 48 ms
 +
|-
 +
| 24 || 19.29 || 53 ms
 +
|}

Revision as of 16:07, 10 February 2006

A Sun Fire T2000, 6-core 1.0GHz UltraSPARC T1, 8GB RAM. It's on evaluation; not ours yet. IP 10.0.0.201. Runs Solaris 10.

ALOM: connect to port 'hydra' on the SCS. Type #. to enter the ALOM console, 'console' from there to enter the system console. From Solaris type ESC-B to enter the openboot prompt. Type 'go' to get back to Solaris.

Useful ALOM commands at the sc> prompt:

poweron
poweroff
powercycle

It has two drives with all FSs mirrored. If the primary drive fails then 'boot backup_root' from the prom (it should do this automatically).

Don't use GCC to compile things here (it's slow on SPARC). Use cc (or CC for C++) in /opt/SUNWspro/bin.

Software

Solaris packages are available in /h/w/src/solaris/. They install into /aux0/wmf. To build a package:

$ cd /home/wikipedia/src/solaris
$ gzip -dc program-1.0.tar.gz | tar xf -
$ cd program-1.0
$ ../configure.sh --prefix=/aux0/wmf/misc
$ make
$ make DESTDIR=/tmp/program install         # or INSTALL_ROOT= for some programs
$ cd ../
$ mkdir program
$ cd program
$ pkgproto /tmp/program=/ >prototype
$ echo 'i pkginfo' >>prototype
$ cat >pkginfo
PKG=WMFprogram
ARCH=sparc
VERSION=1.0
NAME=A program built for WMF
CATEGORY=application
BASEDIR=/
^D
$ pkgmk -o
$ cd ..
$ pkgtrans -s /var/spool/pkg `pwd`/WMFprogram.sparc.pkg WMFprogram
$ pkgadd -d WMFprogram.sparc.pkg

Benchmarks

threads req/s time per request
1 2.34 455 ms
2 4.84 208 ms
4 8.87 130 ms
6 13.7 71 ms
8 16.5 59 ms
12 20.32 47 ms
16 19.98 48 ms
24 19.29 53 ms
Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox