Add in MD5 checksums
[ikiwiki.git] / release50 / index.mdwn
1 # DragonFly BSD 5.0
2
3 * Version 5.0.0 released 16 October 2017
4
5 DragonFly version 5.0 brings the first bootable release of HAMMER2, DragonFly's next generation file system.  
6
7 The details of all commits between the 4.8 and 5.0 branches are available in the associated commit messages for [5.0.0rc1](http://lists.dragonflybsd.org/pipermail/commits/2017-September/626463.html), [5.0.0rc2](http://lists.dragonflybsd.org/pipermail/commits/2017-September/626480.html), and [5.0.0](http://lists.dragonflybsd.org/pipermail/commits/2017-October/626587.html).
8  
9 ## Big-ticket items
10
11 ### HAMMER2
12
13 Preliminary HAMMER2 support has been released into the wild as-of the 5.0 release.  This support is considered EXPERIMENTAL and should generally not yet be used for production machines and important data.  The boot loader will support both UFS and HAMMER2 /boot.  The installer will still use a UFS /boot even for a HAMMER2 installation because the /boot partition is typically very small and HAMMER2, like HAMMER1, does not instantly free space when files are deleted or replaced.
14
15 DragonFly 5.0 has single-image HAMMER2 support, with live dedup (for cp's), compression, fast recovery, snapshot, and boot support.  HAMMER2 does not yet support multi-volume or clustering, though commands for it exist.  Please use non-clustered single images for now.
16
17 ### ipfw Updates
18
19 IPFW has gone through a number of updates in DragonFly and now offers [better](http://lists.dragonflybsd.org/pipermail/commits/2017-September/626329.html) [performance](http://lists.dragonflybsd.org/pipermail/commits/2017-September/626290.html).  pf and ipfw3 are also still supported.
20
21 ### 
22
23 ### Improved graphics support
24
25 * The i915 driver has been brought up to match what's in the Linux 4.7.10 kernel. Intel GPUs are supported up to the Kabylake generation.
26 * [vga_switcheroo(4)](https://leaf.dragonflybsd.org/cgi/web-man?command=vga_switcheroo&section=ANY) module added, allowing the use of Intel GPUs on hybrid-graphics systems.
27 * The new apple_gmux driver enables switching to the Intel video chipset on dual Intel/NVIDIA and Intel/Radeon Macbook computers.
28
29 ### Other user-affecting changes
30
31 * [[efisetup(8)|https://leaf.dragonflybsd.org/cgi/web-man?command=efisetup&section=ANY]] added.  
32 * DragonFly can now support [over 900,000 processes](http://lists.dragonflybsd.org/pipermail/users/2017-August/313552.html) on a single machine.
33
34 ## Details
35
36 ### Checksums
37
38 MD5 (dfly-x86_64-5.0.0_REL.img) = 0b37697389e4dc7380ad4dee1cadf9b0
39 MD5 (dfly-x86_64-5.0.0_REL.iso) = 599d5e151c0315c1112f7585a8265faf
40 MD5 (dfly-x86_64-5.0.0_REL.img.bz2) = b40b76dbdd88cafb8db85bc74a7e438f
41 MD5 (dfly-x86_64-5.0.0_REL.iso.bz2) = 22ecc945e0aacd1bb2ea2318b428a9b0
42
43 ### Upgrading
44
45 If you have an existing 4.8.x system and are running a generic kernel, the normal upgrade process, described below, will work.  
46
47 * Note that DSA OpenSSH keys were deprecated in the 4.6 to 4.8 release.  If you are upgrading from a release older than 4.8 and use DSA OpenSSH keys, please update your private/public key pair or risk locking yourself out.
48
49 Change your local /usr/src to 5.0:
50
51     cd /usr/src
52     git fetch origin
53     git branch DragonFly_RELEASE_5_0 origin/DragonFly_RELEASE_5_0
54     git checkout DragonFly_RELEASE_5_0
55     git pull
56
57 And then rebuild: (in /usr/src )
58
59     make buildworld
60     make buildkernel
61     make installkernel
62     make installworld
63     make upgrade
64
65 Don't forget to upgrade your existing packages.  5.0 packages have
66 already been built and are immediately available.
67
68     pkg upgrade
69
70 ## All changes since DragonFly 4.8
71
72 ### Kernel
73
74 * if_sl, if_ppp, and if_faith are now built as modules and can be removed from kernel configs.
75 * NX (no-execute) pmap support has been added.
76 * Use 64-bit serials for poll/select's kevent.udata.  This fixes an issue where serial cycling could cause spurious events to be reported.
77 * Fix several issues for encrypted installations.
78 * Fix a blocked-lock issue in procfs
79 * Fix a serious permissions bug for sticky directories
80 * Fix event preset bug
81 * Fix an ACPI initialization ordering issue
82 * Fix a CAM shutdown ordering issue
83 * NX support added to kernel, but does not work with some interpreted or JIT languages so disabled by default.
84 * Fix a crypto subsystem stall.
85 * Ryzen CPUs can lockup when the instruction pre-fetcher (which can be speculative) transitions from a canonical to a non-canonical address.  This can happen if the top of the user stack is mapped.  Unmap the top of the user stack, and the top of the user stack is no longer considered to be part of userspace.
86 * Longer stir in arc4random(), make arc4random per-cpu to reduce contention.
87 * Fix a zget() panic which can occur during heavy paging
88 * Fix clustering inefficiencies
89 * tmpfs and vn can't handle certain swapoff situations.  Be sure to fail a swapoff attempt under such conditions so not corruption occurs.
90 * Fix a gcc code reordering problem related to td_critcount operations.  This fixes a lockmgr() race.
91 * Significantly reduce tsleep()/wakeup() queue collisions.
92 * Do many more NUMA-localized allocations for per-cpu structures.
93 * Add better AMD topology detection.
94 * Restrict kill(-1, ...) to the current reaper group.  This fixes issues during bulk builds via synth where third-party programs erroneously signal process -1 after a fork() failure.
95 * Fix broken cpu rotator in lwkt_alloc_thread().
96 * Fix a rare allproc scan vs p_ucred race
97 * Fix unnecessary ucred duplication which led to potentially as many ucred allocations as vnodes.
98 * Fix a memory ordering race in the shared lock mutex code.
99 * Fix an ordering issue with coincident systimer interrupts.  This improves user/sys/idle percentage reporting.
100 * Change our MBR partition type from 0xA5 (which we shared with FreeBSD) to 0x6C
101 * Fix a callout_stop()/callout_reset() rearming race
102 * Improve flushing during low-memory situations
103 * Add an emergency pager.  The normal pager can pageout vnode-backed pages, but the complexity of the filesystem VFS can cause low-memory deadlocks during such flushes.  The emergency pager only pages out anonymous memory and can recover these situations.
104 * Fix the panic() code for AMD cpus that assumed mwait hinting support when there might not be any.
105 * Improve TSC handling.
106 * Fix a SMP tsleep_interlock() vs wakeup() race.
107 * Validate the kernel up to 1 million processes (since PIDs are restricted to 6 digits, this is the max).  Fix numerous issues that crop up under high-process-count conditions.  Yes, it actually does work.
108 * Increase the default posix-lock limit.
109 * Remove a performance bottleneck related to large numbers of pipe() close() operations.
110 * Scale tsleep() performance to hundreds of thousands of processes.
111 * Refactor the maxproc calculation, allowing maxproc to be higher without improperly scaling maxvnodes and other resources to insane levels.
112 * Refactor the load calculation code to not stall cpu 0 when a large number of processes are present (aka a million procsses).
113 * Fix excessive call stack depth for stuck interrupts.
114 * Refactor IPI vector assignments and reformulate INVLTLB IPIs
115
116 ### Networking
117
118 * [Direct input support for polling](http://lists.dragonflybsd.org/pipermail/commits/2017-September/626402.html), on by default for [ix(4)](https://leaf.dragonflybsd.org/cgi/web-man?command=ix&section=ANY). 
119 * Allow up to 64 TX and RX rings for X550 chipsets
120 * Do not pad if_re chips which do not require explicit padding.  This fixes UDP checksum generation on these chipsets.
121 * Limit the number of accepted sockets that kevent() reports.  Defaults to 32.  Does not effect accept() calls.  This deconfuses some third party applications.
122 * Bring in vmx (VMWare virtual network driver, aka vmxnet3).
123 * Add Kabylake support (add Kabylake PCI IDs)
124 * Improve syncache performance.
125 * Add an interface network filter to IPFW.
126 * Add an ipfrag filter to IPFW.
127 * Rework IPFW's states and tracks.
128 * Reduce unnecessary IPIs by using sendmsg_oncpu() when possible.
129 * Improve ipflow code.
130 * Improve polling code.
131 * Fix issue with accelerated IPv4/IPv6 fragment draining.
132 * Randomize the local port.
133 * MSI enabled by default for if_em devices which support it.
134
135
136 ### Other drivers
137
138 * [virtio_scsi(4)](https://leaf.dragonflybsd.org/cgi/web-man?command=virtio_scsi&section=ANY) added
139 * [ig4(4)](https://leaf.dragonflybsd.org/cgi/web-man?command=ig4&section=ANY) devices are now recognized.
140 * internal updates to the [isp(4)](https://leaf.dragonflybsd.org/cgi/web-man?command=isp&section=ANY) SCSI adapter driver.
141 * [ADMA2 mode](http://lists.dragonflybsd.org/pipermail/commits/2017-May/625874.html) is now supported for SD card data transfer.
142 * UHS1 SD card disk format is [now supported](http://lists.dragonflybsd.org/pipermail/commits/2017-May/625911.html).
143 * Properly delete /dev/dsp and /dev/mixer on sound module unload.
144 * NVMe now handles devices without MSI-X support (aka virtualized NVMe).
145 * vtnet and virtio_blk improvements.
146
147 ### Userland
148
149 * HAMMER1 now is at an internal version of 7, reflecting a new, faster [checksum operation](http://lists.dragonflybsd.org/pipermail/commits/2017-March/625653.html).
150 * [kcollect(8)](https://leaf.dragonflybsd.org/cgi/web-man?command=kcollect&section=ANY) has been added for automatic data gathering on a running DragonFly system.
151 * [sshlockout(8)](https://leaf.dragonflybsd.org/cgi/web-man?command=sshlockout&section=ANY) will now lock out based on [number of attempts](http://lists.dragonflybsd.org/pipermail/commits/2017-July/626020.html).
152 * Fix a static buffer overflow in mfiutil
153 * Fix a graphics compatibility enable test in 'window'
154 * Fix several sscanf bugs in userland
155 * usched now allows a process to change its own cpu affinity
156 * Fix a bug in ceill()
157 * Fix a seg-fault on crypt failure.
158 * Many namespace cleanups to improve dports compatibility.
159 * OpenSSH updated to 7.6p1
160
161 ### Various tools have been upgraded in the base system:
162
163 ### Hammer Changes
164
165 * Improve concurrent dedup stability under heavy concurrent loads.
166 * HAMMER to version 7.  This version changes the CRC mechanic from an older slower CRC API to the ISCSI CRC code, which is 6x faster.  Improves HAMMER performance.  HAMMER supports both old and new CRC methods and is backwards compatible, but only files created after this change will use the new mechanism.
167
168 ### Clang status
169
170 A starting framework has been added for using clang as the alternate base compiler in DragonFly, to replace gcc 4.7.  It's not yet complete.  Clang can of course be added as a package.
171
172 ### 64-bit status
173
174 * Note that DragonFly is a 64-bit-only operating system as of 4.6, and will not run on 32-bit hardware.
175
176 * AMD Ryzen is supported and DragonFly 5.0 has a workaround for a [hardware bug](http://lists.dragonflybsd.org/pipermail/commits/2017-August/626190.html).