Home
last modified time | relevance | path

Searched +full:swap +full:- +full:size +full:- +full:gb (Results 1 – 25 of 79) sorted by relevance

1234

/freebsd/share/man/man7/
H A Dgrowfs.71 .\" Copyright 2014 John-Mark Gurney
31 .Nd start up scripts to grow the root file system and add swap
40 It can also add a swap partition, with a default size of 10% of the boot disk.
41 Swap is limited to twice the memory size up to 4 GB,
42 8 GB up to 8 GB of memory, and memory size over 8 GB.
48 By default, no swap partition is created if an existing swap partition is found
51 or the disk is under 15 GB.
54 script adds any new swap partition to
68 .Bl -tag -width ".Va growfs_swap_size" -offset indent
75 after optionally adding a swap device at the end.
[all …]
H A Dtuning.731 .Sh SYSTEM SETUP - DISKLABEL, NEWFS, TUNEFS, SWAP
32 The swap partition should typically be approximately 2x the size of
34 for systems with less than 4GB of RAM, or approximately equal to
35 the size of main memory
38 expansion when sizing the swap partition.
39 Configuring too little swap can lead
43 with multiple disks, configure swap on each drive.
44 The swap partitions on the drives should be approximately the same size.
46 internal data structures scale to 4 times the largest swap partition.
48 the swap partitions near the same size will allow the kernel to optimally
[all …]
/freebsd/libexec/rc/rc.d/
H A Dgrowfs4 # Copyright 2014 John-Mark Gurney
35 # Grow root partition to fill available space, optionally adding a swap
37 # have it work on essentially any size drive.
41 # space on rootfs for the boot to succeed, and on images we ship - which are
42 # the primary purpose of this script - there is no separate /usr anyway.
55 sysctl -b kern.geom.conftxt |
58 if [ "${_type}" = "DISK" -a -n "$(echo ${_search} | grep ${_dev})" ]; then
59 echo -n ${_dev}
65 # Compute upper bound on swap partition size (if added), based on physmem
67 # Rule for swap size based on memory size:
[all …]
/freebsd/sys/contrib/openzfs/.github/workflows/scripts/
H A Dqemu-1-setup.sh7 set -eu
11 sudo apt-get -y update
12 sudo apt-get install -y axel cloud-image-utils daemonize guestfs-tools \
13 ksmtuned virt-manager linux-modules-extra-$(uname -r) zfsutils-linux
16 rm -f ~/.ssh/id_ed25519
17 ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -q -N ""
21 # /etc/ksmtuned.conf - Configuration file for ksmtuned
22 …documentation/red_hat_enterprise_linux/7/html/virtualization_tuning_and_optimization_guide/chap-ksm
25 # Millisecond sleep between ksm scans for 16Gb server.
48 sudo swapoff -a
[all …]
/freebsd/tools/test/stress2/misc/
H A Dtrim3.sh29 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
31 # Run with marcus.cfg on a 1 GB swap backed MD with option trim.
32 # A swap backed MD has caused a "vmwait" hang in "CAM taskq".
37 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
38 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
40 size="1g"
41 [ $# -eq 0 ] && trim=-t
45 [ "$newfs_flags" = "-U" ] && opt="-U -j"
47 echo "mdconfig -a -t swap -s $size -u $mdstart"
48 mdconfig -a -t swap -s $size -u $mdstart || exit 1
[all …]
H A Dtrim4.sh29 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
31 # Run with marcus.cfg on a 1 GB swap backed MD with option trim.
36 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
37 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
39 size="1g"
40 [ $# -eq 0 ] && trim=-t
41 [ "$newfs_flags" = "-U" ] && flag="-j"
44 while [ $((`date +%s` - start)) -lt $((15 * 60)) ]; do
46 echo "mdconfig -a -t swap -s $size -u $mdstart"
47 mdconfig -a -t swap -s $size -u $mdstart || exit 1
[all …]
H A Dnewfs5.sh29 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
33 # Variation of newfs4.sh, using a swap backed MD disk
38 mycc -o newfs5 -Wall -Wextra newfs5.c
39 rm -f newfs5.c
43 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
45 blocksize="-b 65536"
46 opt="-O2 -U"
47 size=9 # Gb
48 mdconfig -a -t swap -s ${size}g -u $mdstart
53 truncate -s 2g f1
[all …]
H A Dumount2.sh29 # # ps -l
31 # 0 72280 1 0 20 0 5992 1768 mntref D 0- 0:03.20 umount /mnt
35 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
36 [ `swapinfo | wc -l` -eq 1 ] && exit 0
40 mount | grep -q "on $mntpoint " && umount -f $mntpoint
41 [ -c /dev/md$mdstart ] && mdconfig -d -u $mdstart
42 mdconfig -a -t swap -s 5g -u $mdstart
47 size=$((`sysctl -n hw.physmem` / 1024 / 1024))
48 [ $size -gt $((4 * 1024)) ] &&
49 echo "RAM should be capped to 4GB for this test."
[all …]
H A Dmarcus7.sh4 # SPDX-License-Identifier: BSD-2-Clause
32 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
33 [ `swapinfo | wc -l` -eq 1 ] && exit 0
42 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
43 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
44 mdconfig -a -t swap -s 5g -u $mdstart
49 size=$((`sysctl -n hw.physmem` / 1024 / 1024))
50 [ $size -gt $((4 * 1024)) ] &&
51 echo "RAM should be capped to 4GB for this test."
52 [ "`sysctl -n debug.deadlkres.sleepfreq 2>/dev/null`" = "3" ] &&
[all …]
H A Dmarcus5.sh29 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1
30 [ `swapinfo | wc -l` -eq 1 ] && exit 0
39 mount | grep $mntpoint | grep -q /dev/md && umount -f $mntpoint
40 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart
41 mdconfig -a -t swap -s 5g -u $mdstart
46 size=$((`sysctl -n hw.physmem` / 1024 / 1024))
47 [ $size -gt $((4 * 1024)) ] &&
48 echo "RAM should be capped to 4GB for this test."
49 [ "`sysctl -n debug.deadlkres.sleepfreq 2>/dev/null`" = "3" ] &&
52 n=`find ../testcases -perm -1 -type f | wc -l`
[all …]
/freebsd/lib/geom/part/
H A Dgpart.838 .Op Fl s Ar size
96 .Op Fl s Ar size
144 .Bl -tag -width ".Cm bootcode"
151 The partition's location, size, and other attributes will be calculated
157 .Bl -tag -width 12n
164 .Ar size
186 .It Fl s Ar size
187 Create a partition of size
188 .Ar size .
215 .Bl -tag -width 10n
[all …]
/freebsd/crypto/libecc/.github/workflows/
H A Dlibecc_crossarch_tests.yml8 runs-on: ubuntu-20.04
10 #max-parallel: 10
15-linux-gnueabi, arm-linux-gnueabihf, aarch64-linux-gnu, powerpc64le-linux-gnu, mipsel-linux-gnu, i…
16 …_target: [arm-linux-gnueabi, arm-linux-gnueabihf, aarch64-linux-gnu, powerpc64le-linux-gnu, mipsel
19 # Add swap because of possible out of memory issues
20 - name: Set Swap Space
21 uses: pierotofy/set-swap-space@master
23 swap-size-gb: 10
25 - name: checkout repository
29 - name: libecc cross-arch tests
[all …]
/freebsd/sys/contrib/device-tree/Bindings/net/
H A Dkeystone-netcp.txt6 switch sub-module to send and receive packets. NetCP also includes a packet
13 includes a 3-port Ethernet switch sub-module capable of 10Gb/s and 1Gb/s rates
16 Keystone NetCP driver has a plug-in module architecture where each of the NetCP
17 sub-modules exist as a loadable kernel module which plug in to the netcp core.
18 These sub-modules are represented as "netcp-devices" in the dts bindings. It is
19 mandatory to have the ethernet switch sub-module for the ethernet interface to
20 be operational. Any other sub-module like the PA is optional.
24 -----------------------------
26 -----------------------------
28 |-> NetCP Devices -> |
[all …]
/freebsd/sys/i386/include/
H A Dparam.h1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
77 * CACHE_LINE_SIZE is the compile-time maximum cache line size for an
85 #define PAGE_MASK (PAGE_SIZE - 1)
88 /* Size in bytes of the page directory */
90 /* Number of PDEs in page directory, 2048 for PAE, 1024 for non-PAE */
94 #define PDRMASK (NBPDR - 1)
123 * 16 GB of swap. In practice, however, the usable amount is considerably
131 * Ceiling on size of buffer cache (really only effects write queueing,
135 * The value is equal to the size of the auto-tuned buffer map for
[all …]
/freebsd/lib/libsys/
H A Dshm_open.2103 Newly created objects start off with a size of zero.
109 then the shared memory object will be truncated to a size of zero.
110 The size of the object can be adjusted via
158 This ensures that the object can be mapped using so-called
169 Largepage shared memory objects behave slightly differently from non-largepage
171 .Bl -bullet -offset indent
177 lazily and may be paged out to a swap device when not in use.
179 The size of a mapping of a largepage object must be a multiple of the
180 underlying large page size.
182 of the large page size.
[all …]
/freebsd/release/tools/
H A Dec2.conf4 # * ebsnvme-id, which is very minimal and provides important EBS-specific
6 export VM_EXTRA_PACKAGES="${VM_EXTRA_PACKAGES} ebsnvme-id"
11 # Build with a 7.9 GB partition; the growfs rc.d script will expand
13 # Note that if this is set to <N>G, we will end up with an <N+1> GB disk
14 # image since VMSIZE is the size of the filesystem partition, not the disk
18 # No swap space; it doesn't make sense to provision any as part of the disk
20 # and 4096 GB of RAM.
26 mount -t devfs devfs ${DESTDIR}/dev
28 /usr/sbin/pkg delete -f -y pkg
30 rm -r ${DESTDIR}/var/db/pkg/repos/FreeBSD
[all …]
/freebsd/sys/contrib/openzfs/lib/libspl/include/sys/dktp/
H A Dfdisk.h9 * or https://opensource.org/licenses/CDDL-1.0.
41 * BIOS and MS-DOS conventions.
60 * Vista DISKID. Otherwise Vista won't boot from Solaris GRUB in a dual-boot
62 * The actual size of mboot code is 425 bytes while that of GRUB stage1 is
65 #define BOOTSZ 440 /* size of boot code in master boot block */
78 unsigned char begsect; /* begcyl is a 10-bit number. High 2 bits */
82 unsigned char endsect; /* endcyl is a 10-bit number. High 2 bits */
96 #define DOSOS12 1 /* DOS partition, 12-bit FAT */
98 #define DOSOS16 4 /* DOS partition, 16-bit FAT */
99 #define EXTDOS 5 /* EXT-DOS partition */
[all …]
/freebsd/usr.bin/rctl/
H A Drctl.81 .\"-
60 .Bl -tag -width indent
88 "Human-readable" output.
98 Syntax for a rule is subject:subject-id:resource:action=amount/per.
100 .Bl -tag -width "subject-id" -compact -offset indent
109 .It subject-id
165 .Bl -column -offset 3n "pseudoterminals" ".Sy username or numerical User ID"
173 .Bl -column -offset 3n "pseudoterminals"
175 .It Sy datasize Ta "data size, in bytes"
176 .It Sy stacksize Ta "stack size, in bytes"
[all …]
/freebsd/sys/sys/
H A Dmman.h1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
49 * Protections are chosen from these bits, or-ed together
92 #define MAP_ANON 0x1000 /* allocated from memory, swap space */
104 #define MAP_32BIT 0x00080000 /* map in the low 2GB of address space */
122 /* Atomically swap src and dest */
138 #define MAP_FAILED ((void *)-1)
180 /* Page size */
276 * Values maintained solely to make this a better-behaved file
303 int shm_map(struct file *fp, size_t size, off_t offset, void **memp);
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DSmallVector.h1 //===- llvm/ADT/SmallVector.h - 'Normally small' vectors --------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
48 /// Size and Capacity of the SmallVector, so it can be adjusted.
49 /// Using 32 bit size is desirable to shrink the size of the SmallVector.
50 /// Using 64 bit size is desirable for cases like SmallVector<char>, where a
51 /// 32 bit size would limit the vector to ~4GB. SmallVectors are used for
52 /// buffering bitcode output - which can exceed 4GB.
56 Size_T Size = 0, Capacity; variable
[all …]
/freebsd/stand/i386/btx/btxldr/
H A Dbtxldr.S18 #define RBX_MUTE 0x10 /* -m */
37 .set SEL_SCODE,0x8 # 4GB code
38 .set SEL_SDATA,0x10 # 4GB data
44 .set PAG_SIZ,0x1000 # Page size
45 .set PAG_ENT,0x4 # Page entry size
61 .set SIZ_STUB,0x1a # Size of stub
116 start_null_bi: movl $BOOTARGS_SIZE,%ecx # Fixed size of arguments
119 addl BOOTARGS_SIZE+4(%esp),%ecx # Add size of variable args
155 orl $PAG_SIZ/PAG_ENT-1,%edi # the
160 movzwl 0xa(%ebx),%ecx # Image size
[all …]
/freebsd/sys/dev/drm2/ttm/
H A Dttm_memory.c3 * Copyright (c) 2006-2009 VMware, Inc., Palo Alto, CA., USA
20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
53 zone->name, (unsigned long long)zone->used_mem >> 10); in ttm_mem_zone_kobj_release()
65 mtx_lock(&zone->glob->lock);
67 val = zone->zone_mem;
69 val = zone->emer_mem;
71 val = zone->max_mem;
73 val = zone->swap_limit;
75 val = zone->used_mem;
76 mtx_unlock(&zone->glob->lock);
[all …]
/freebsd/sbin/swapon/
H A Dswapon.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
90 while ((ch = getopt(argc, argv, "AadEfghklLmqsUF:")) != -1) { in main()
172 if (strcmp(fsp->fs_type, FSTAB_SW) != 0) in main()
174 if (strstr(fsp->fs_mntops, "noauto") != NULL) in main()
177 strstr(fsp->fs_mntops, "late") && in main()
181 strstr(fsp->fs_mntop in main()
842 size_t mibsize, size; swaplist() local
[all...]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common.h1 //===-- sanitizer_common.h --------------------------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file is shared between run-time libraries of sanitizers.
13 // others must be defined by run-time library itself.
14 //===----------------------------------------------------------------------===//
45 const uptr kMaxThreadStackSize = 1 << 30; // 1Gb
64 // 32-bit Android only has 4k pages.
90 void *MmapOrDie(uptr size, const char *mem_type, bool raw_report = false);
92 inline void *MmapOrDieQuietly(uptr size, const char *mem_type) { in MmapOrDieQuietly() argument
[all …]
/freebsd/sys/arm/mv/
H A Dmvwin.h1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
4 * Copyright (C) 2007-2011 MARVELL INTERNATIONAL LTD.
40 * All decoding windows must be aligned to their size, which has to be
56 * External devices: 0x80000000, 1 GB (VA == PA)
66 #define MV_PCI_PORTS 1 /* 1x PCIE -> worst case */
125 #define MV_WIN_CPU_CTRL_ARMV7(n) (((n) < 8) ? 0x10 * (n) : 0x90 + (0x8 * ((n) - 8)))
126 #define MV_WIN_CPU_BASE_ARMV7(n) ((((n) < 8) ? 0x10 * (n) : 0x90 + (0x8 * ((n) - 8))) + 0x4)
176 * 0x0 = Byte swap
177 * 0x1 = No swap
[all …]

1234