+Errata
[ikiwiki.git] / release28 / index.mdwn
1 # DragonFly Release 2.8
2 ## x October 2010 (2.8.1)
3
4 The DragonFly 2.8 release is here!
5
6 ## Big-ticket items
7
8 **Crypto support** - dm-crypt was ported to DragonFly.  This means that it is now possible to encrypt DragonFly partitions (e.g., HAMMER and UFS). While it is possible to only encrypt certain partition like `/home/`, it is also possible to encrypt the whole root file system. The latter is especially useful for mobile devices. Further, some parts of the code are SMP aware, so expect a speedup if using multi core machines.
9
10 **Packet Filter (pf)** - Pf was updated to a version based upon OpenBSD 4.2. The previous version of pf in DragonFly was based on OpenBSD 3.5. This, in addition to laying the ground for further following OpenBSD's implementation, introduced several performance gains: Information like route-to, altq, tags, etc are now stored in the `mbuf` header directly. This was partially already the case up to DragonFly 2.6, but now the implementation corresponds to OpenBSD's. Furthermore an often unnecessary checksumming was removed, which gains another 10% performance.  Also state tables and interface bound states were reimplemented and the pf_test_*() functions where fold into pf_test_rule() to make  things clearer. DragonFly-specific additions, support for fairq packet queueing and pickups, have remained intact.
11
12 **WiFi Stack Update** - FreeBSD's WiFi (802.11) network stack has been ported by Rui Paulo.  While not all WiFi drivers have been ported the ability to port drivers from FreeBSD much more easily will allow us to ultimately add support for more and newer WiFi devices in the near future.
13
14 **MP Performance** - The multiprocessor work that has been ongoing in DragonFly is beginning to bear fruit. The MPLOCK (The Giant or primary lock, that when held ensures only a single cpu is operating within the kernel) has been pushed back significantly with this release. Performance has been improved for many workloads.
15
16 ## Availability
17
18 Three release options are now available for 32-bit as well as for 64-bit.
19
20 * An ISO, to be burned to a physical cd or used as an image to install a virtual machine.
21 * A bootable USB disk-key image (minimum 1G USB stick needed)
22 * A GUI bootable USB disk-key image with a full X environment.
23
24 The release ISO images should be available on most of the [[mirrors|mirrors]]. If the ISO is not available on a certain mirror, please try another one or download it from the DragonFly FTP server. Each image is in the "Live CD" format, meaning that it boots into a running and fully functional DragonFly system, which can be used for testing or system recovery tasks as well as installation
25
26 ## Errata
27
28 A minor bug related to CD9660/RockRidge directory entries resulted in the last-minute build of an "A" revision of the 2.8.1-RELEASE images. This issue caused the ISO images to always boot an SMP kernel. If you have somehow ended up with an original 2.8.1 image, note that while we recommend retrieving 2.8.1A and verifying its contents with the MD5 sum given on this page, the image you already have is functionally equivalent if your system is capable of booting an SMP kernel.
29
30 ### MD5 sums
31
32 * MD5 (dfly-i386-2.8.1A_REL.img.bz2) = 01d149f774a38bbed769e9248d7495d4
33 * MD5 (dfly-i386-2.8.1A_REL.iso.bz2) = 145cdcbc46baf04ec3330925a76af900
34 * MD5 (dfly-i386-gui-2.8.1_REL.img.bz2) = c6ac3387490cf5dbeba80cdbf3841ee2
35 * MD5 (dfly-x86_64-2.8.1A_REL.img.bz2) = 4b7112a56fe6ddfc23b6d373766a1ce6
36 * MD5 (dfly-x86_64-2.8.1A_REL.iso.bz2) = a6bb3121795893f658ede78144134176
37 * MD5 (dfly-x86_64-gui-2.8.1_REL.img.bz2) = 0e2093f44c481a2780346897c63d056f
38
39 ### pkgsrc packages
40
41 We offer thousands of pre-built [pkgsrc](http://www.pkgsrc.org) packages for this release. The [pkg_radd(1)](http://leaf.dragonflybsd.org/cgi/web-man?command=pkg_radd&section=ANY) utility may be used to download pre-built binary packages.  The path can be overridden by setting BINPKG_BASE in `/etc/settings.conf`.
42
43 To get a list of all packages, let [pkg_search(1)](http://leaf.dragonflybsd.org/cgi/web-man?command=pkg_search&section=ANY) download the summary file for that release:
44
45     # pkg_search -d
46
47 We supply a Makefile in `/usr` to track the pkgsrc tree and we supply a Git mirror of the NetBSD pkgsrc CVS repo at `git://git.dragonflybsd.org/pkgsrcv2.git`.  We recommend that users use it, instead of pulling from NetBSD with CVS.  Our Git mirror is updated several times a day.
48
49 ## DragonFly 2.8.x Special Installation and Upgrade Notes
50
51 **New Loader** - The forth loader is no longer in the system. The new loader, 'dloader', has to be installed before an 'installkernel'. If you are updating from an older system such as DragonFly 2.6 it is recommended to run an installworld before the installkernel to update the loader. Otherwise you can simply do the following before the 'installkernel'.
52
53 >     # cd /usr/src/sys/boot
54 >     # make all install
55
56
57 **BIND removal** - BIND is no longer in the base system.  If you are using BIND or any of the associated utilities (host, nslookup, etc.), this method will allow you to transition to the version in pkgsrc:
58
59 >     # cd /usr/pksrc/net/bind96
60 >     # bmake all install clean
61
62 or
63
64 >     # pkg_radd bind96
65
66 >     # cp /usr/pkg/share/examples/rc.d/named9 /etc/rc.d/
67 >     # /etc/rc.d/named stop
68
69 edit /etc/rc.conf, and  remove 
70
71 >     named_enable="YES"
72
73 then add
74
75 >     named9_enable="YES"
76 >     named_chrootdir="/etc/namedb"
77 >     named_flags="-c named.conf"
78 >     named_program="/usr/pkg/sbin/named"
79 >
80 >     # chown -R named /etc/namedb
81 >     # /etc/rc.d/named9 start
82
83 Test your setup with `host`, `dig` and so on. Check for a running `named` process with ps. Error messages should go to `/var/log/messages`.
84
85 **OpenSSL upgrade** - OpenSSL has been upgraded, and SHLIB_MAJOR was bumped for `libssh` and `libcrypto`. This shouldn't break any 3rd-party software, but you'll need to recompile your 3rd-party software if you want it to link against the new version of OpenSSL.
86
87 ## DragonFly 2.8 Release Notes
88
89 ### Release Improvements
90
91 > ### Kernel changes
92 * dsched, an IO Scheduler framework and dsched_fq, a Fair Queuing I/O scheduler policy.
93 * Device Mapper imported from NetBSD.
94 * stripe and crypt targets for the Device Mapper.
95 * select(2), poll(2) and kqueue/kevent(2) implementations were unified on top of the existing kqueue implementation.
96 * Device polling API's and selrecord/selwakeup were dropped, in favor of kqueue's knote API, simplifying device implementation.
97 * LWKT tokens reworked to improve efficiency, especially in recursive scenarios.
98 * Direct acquisition of MPLOCK removed from VM and pmaps, now under a global VM token.
99 * VM: Idle time page zeroing.
100 * Major update of pf from OpenBSD 3.5 to 4.2, keeping DragonFly specific additions (support for pickups and fairq).
101 * Network socket flags were made atomic.
102 * Additional portions of the network stack were removed from under the MPLOCK.
103 * Major performance improvements to softcrypto on SMP systems.
104 * kern_udev - A framework to associate optional information with device nodes.
105 * initrd (initial ramdisk/malloc disk) support.
106 * Removal of shared spinlocks and renaming of the spinlock API.
107 * Added support for AES-XTS and AES-CTR to the opencrypto framework.
108 * proplib imported from NetBSD.
109 * Removal of the forth loader in favour of a C-only loader, 'dloader'.
110 * Fixing of {MADV,MAP}_NOSYNC, resulting in a great performance improvement for vkernels.
111 * TCP-MD5 (RFC 2385) was ported from FreeBSD.
112 * LWKT scheduler's priority mechanism was rewritten
113 * Linux Emulation mostly MPSAFE.
114 * Added renameat syscall
115 * kfree() IPIs dramatically reduced.
116 * Add support for cdevs as virtual disks for vkernels.
117 * nullfs gained support for the noexec flag.
118 * It is now possible to dump to dm disks.
119 * Sync amdpm(4) with FreeBSD (and bring in amdsmb(4)).
120 * Sync alpm(4) with FreeBSD.
121
122 > ### Hardware changes (non-networking)
123 * Driver for Areca RAID controllers (arcmsr).
124 * aesni crypto driver.
125 * AHCI support for recent AMD SATA chipsets.
126 * VIA Padlock support fixed.
127 * The uguru(4) driver for ABIT temperature, voltage and fan sensors was ported from OpenBSD.
128 * twa(4) was synced with FreeBSD version 3.80.06.003.
129 * New swapoff utility to turn off swap space.
130
131 > ### Hardware changes (networking)
132  * New wireless network card framework has been ported from FreeBSD under contract.
133  * Wireless cards utilizing the following drivers are supported in this release: ath, iwi, iwn, ral, wi, wpi.
134  * The following drivers have not been ported and will not yet work: acx, an, bwi, ndis, rtw, rum, ural.
135
136 > ### Multiprocessor Safe Work
137 * Major MPSAFE Infrastructure was done.
138 * The following parts (referencing source files) of the kernel are now MPSAFE:
139  * imgact_resident
140  * kern_mpipe
141  * kern_plimit
142  * kern_prot
143  * kern_sensors
144  * kern_sig
145  * kern_slaballoc
146  * kern_uuid
147  * kern_umtx
148  * syscons
149  * sys_pipe
150  * sys_process
151  * uipc_mbuf
152  * vfs_sync
153  * vm_zeroidle
154  * vnode_pager
155 * Additional subsystems that are now MPSAFE: protocol drain routines, pf packet filter, kevent. The ahci and sili drivers and tty's have also received the treatment.
156
157 > ### Userland changes
158 * A catastrophic recovery command was added to the hammer(8) utility, allowing data to be potentially recovered from physically damaged media.
159 * Power/CPU frequency management daemon named powerd(8).
160 * libdevattr - A library giving access to additional information about kernel device nodes with an API that is mostly compatible with Linux' libudev.
161 * udevd - A support daemon for libdevattr.
162 * Kernel programming guide (section 9 man pages) updated and extended.
163 * mkinitrd - A tool to generate an initrd image to be able to boot from crypto, lvm and other devices.
164 * crashinfo, a tool to automatically extract some useful information from kernel dumps in a text format.
165 * proplib imported from NetBSD.
166 * Added sha512 support to libmd.
167 * ftp-proxy - Port from libevent to kqueue(2)/kevent(2).
168 * bthcid - Port from libevent to kqueue(2)/kevent(2).
169 * FreeBSD's stress2 stress testing suite was imported.
170 * ioprio, a utility to change the I/O priority of a process doing I/O on a disk with the dsched_fq policy.
171 * lt, a 'tree'-like utility.
172 * Ported savecore(1) from FreeBSD used to gather info from crash dumps.
173 * Installer now uses tmpfs instead of mfs.
174 * Several fixes for the DragonFly Mail Agent (dma).
175 * top(1) prints now Proportional RSS (PRES) instead of RSS.
176 * pf(4) OS fingerprints for all DragonFly versions.
177 * OpenSSL can now load engines at run-time.
178 * Various vkernel updates including support for diskless operation.
179 * nmalloc (libc malloc) gained a per-thread magazine layer for improved scalability.
180
181 > ### amd64-specific changes
182 * A number of rare race conditions was fixed. This improves overall stability.
183 * It is now possible to use powernow(4).
184 * It is now possible to boot an SMP kernel without having to enable `APIC_IO`.
185
186 > ### Removals
187 * BIND is no longer in the base system.  See Special Upgrade notes above for a migration path.
188
189 > ### Contributed Software
190 * Imported drill and libldns as a resolving utility in base as BIND has gone.
191 * Imported lvm (Logical Volume Manager).
192 * Imported cryptsetup for use with the new device mapper crypto target, dm_target_crypt.
193 * Updated awk to 20100523.
194 * Updated bzip2 to 1.0.6 which fixes CVE-2010-0405.
195 * Updated OpenSSH to 5.6p1 (with HPN patch).
196 * Updated OpenSSL to 1.0.0a.
197 * Updated tzdata to 2010n.
198
199
200 >### Security related
201 * Improved stability of tmpfs so that a simple user can't panic the system due to kva exhaustion.
202 * A security issue in libopie was fixed.
203 * A security issue in the libc globbing code was fixed.
204