core.5 (6cec9cad762b6476313fb1f8e931a1647822db6b) | core.5 (aa14e9b7c9d90c2db81e29b3c68bcee6129b8b4c) |
---|---|
1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 14 unchanged lines hidden (view full) --- 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" 28.\" @(#)core.5 8.3 (Berkeley) 12/11/93 29.\" $FreeBSD$ 30.\" | 1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 14 unchanged lines hidden (view full) --- 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" 28.\" @(#)core.5 8.3 (Berkeley) 12/11/93 29.\" $FreeBSD$ 30.\" |
31.Dd November 22, 2012 | 31.Dd March 8, 2015 |
32.Dt CORE 5 33.Os 34.Sh NAME 35.Nm core 36.Nd memory image file format 37.Sh SYNOPSIS 38.In sys/param.h 39.Sh DESCRIPTION --- 56 unchanged lines hidden (view full) --- 96real or effective will not create a corefile. 97This behaviour can be 98changed to generate a core dump by setting the 99.Xr sysctl 8 100variable 101.Va kern.sugid_coredump 102to 1. 103.Pp | 32.Dt CORE 5 33.Os 34.Sh NAME 35.Nm core 36.Nd memory image file format 37.Sh SYNOPSIS 38.In sys/param.h 39.Sh DESCRIPTION --- 56 unchanged lines hidden (view full) --- 96real or effective will not create a corefile. 97This behaviour can be 98changed to generate a core dump by setting the 99.Xr sysctl 8 100variable 101.Va kern.sugid_coredump 102to 1. 103.Pp |
104Corefiles can be compressed by the kernel if the following items 105are included in the kernel configuration file: | 104Corefiles can be compressed by the kernel if the following item 105is included in the kernel configuration file: |
106.Bl -tag -width "1234567890" -compact -offset "12345" 107.It options | 106.Bl -tag -width "1234567890" -compact -offset "12345" 107.It options |
108COMPRESS_USER_CORES 109.It devices 110gzio | 108GZIO |
111.El 112.Pp | 109.El 110.Pp |
113When COMPRESS_USER_CORES is included the following sysctls can control 114if core files will be compressed: | 111When the GZIO option is included, the following sysctls control whether core 112files will be compressed: |
115.Bl -tag -width "kern.compress_user_cores_gzlevel" -compact -offset "12345" 116.It Em kern.compress_user_cores_gzlevel 117Gzip compression level. | 113.Bl -tag -width "kern.compress_user_cores_gzlevel" -compact -offset "12345" 114.It Em kern.compress_user_cores_gzlevel 115Gzip compression level. |
118Defaults to -1. | 116Defaults to 6. |
119.It Em kern.compress_user_cores 120Actually compress user cores. | 117.It Em kern.compress_user_cores 118Actually compress user cores. |
121Core files will have the suffix 122.Em .gz | 119Compressed core files will have a suffix of 120.Ql .gz |
123appended to them. 124.El 125.Sh EXAMPLES 126In order to store all core images in per-user private areas under 127.Pa /var/coredumps , 128the following 129.Xr sysctl 8 130command can be used: --- 13 unchanged lines hidden --- | 121appended to them. 122.El 123.Sh EXAMPLES 124In order to store all core images in per-user private areas under 125.Pa /var/coredumps , 126the following 127.Xr sysctl 8 128command can be used: --- 13 unchanged lines hidden --- |