Home
last modified time | relevance | path

Searched full:swap (Results 1 – 25 of 1980) sorted by relevance

12345678910>>...80

/freebsd/contrib/netbsd-tests/sbin/resize_ffs/
H A Dt_grow_swapped.sh33 # resize_ffs blocksize fragsize fssize newfssize level numdata swap
37 # If 'swap' is included, byteswap the fs
40 test_case grow_16M_v0_4096 resize_ffs 4096 512 32768 131072 0 28 swap
41 test_case grow_16M_v0_8192 resize_ffs 8192 1024 32768 131072 0 28 swap
42 test_case grow_16M_v0_16384 resize_ffs 16384 2048 32768 131072 0 29 swap
43 test_case grow_16M_v0_32768 resize_ffs 32768 4096 32768 131072 0 28 swap
44 test_case grow_16M_v0_65536 resize_ffs 65536 8192 32768 131072 0 26 swap
46 test_case grow_24M_v0_4096 resize_ffs 4096 512 49152 65536 0 41 swap
47 test_case grow_24M_v0_8192 resize_ffs 8192 1024 49152 65536 0 42 swap
48 test_case grow_24M_v0_16384 resize_ffs 16384 2048 49152 65536 0 43 swap
[all …]
H A Dt_shrink_swapped.sh33 # resize_ffs blocksize fragsize fssize newfssize level numdata swap
37 # If 'swap' is included, byteswap the fs
38 test_case shrink_24M_16M_v0_4096 resize_ffs 4096 512 49152 32768 0 41 swap
39 test_case shrink_24M_16M_v0_8192 resize_ffs 8192 1024 49152 32768 0 42 swap
40 test_case shrink_24M_16M_v0_16384 resize_ffs 16384 2048 49152 32768 0 43 swap
41 test_case shrink_24M_16M_v0_32768 resize_ffs 32768 4096 49152 32768 0 42 swap
42 test_case shrink_24M_16M_v0_65536 resize_ffs 65536 8192 49152 32768 0 38 swap
43 test_case shrink_32M_24M_v0_4096 resize_ffs 4096 512 65536 49152 0 55 swap
44 test_case shrink_32M_24M_v0_8192 resize_ffs 8192 1024 65536 49152 0 56 swap
45 test_case shrink_32M_24M_v0_16384 resize_ffs 16384 2048 65536 49152 0 58 swap
[all …]
/freebsd/sbin/swapon/
H A Dswapon.855 utilities are used to control swap devices in the system.
56 At boot time all swap entries in
59 Swap devices use a fixed interleave; the maximum number of devices
65 utility adds the specified swap devices to the system.
68 option is used, all swap devices in
78 swap devices with the
85 written to standard output when a swap device is added.
104 utility removes the specified swap devices from the system.
107 option is used, all swap devices in
115 only swap devices with the
[all …]
/freebsd/contrib/file/src/
H A Delfclass.h32 swap = (u.c[sizeof(int32_t) - 1] + 1) != elfhdr.e_ident[EI_DATA];
34 type = elf_getu16(swap, elfhdr.e_type);
39 phnum = elf_getu16(swap, elfhdr.e_phnum);
43 if (dophn_core(ms, clazz, swap, fd,
44 CAST(off_t, elf_getu(swap, elfhdr.e_phoff)), phnum,
45 CAST(size_t, elf_getu16(swap, elfhdr.e_phentsize)),
52 phnum = elf_getu16(swap, elfhdr.e_phnum);
55 shnum = elf_getu16(swap, elfhdr.e_shnum);
58 if (dophn_exec(ms, clazz, swap, fd,
59 CAST(off_t, elf_getu(swap, elfhdr.e_phoff)), phnum,
[all …]
H A Dreadelf.c79 getu16(int swap, uint16_t value) in getu16() argument
86 if (swap) { in getu16()
98 getu32(int swap, uint32_t value) in getu32() argument
105 if (swap) { in getu32()
119 getu64(int swap, uint64_t value) in getu64() argument
126 if (swap) { in getu64()
143 #define elf_getu16(swap, value) getu16(swap, value) argument
144 #define elf_getu32(swap, value) getu32(swap, value) argument
145 #define elf_getu64(swap, value) getu64(swap, value) argument
154 ? elf_getu32(swap, sh32.sh_size) \
[all …]
/freebsd/share/man/man7/
H A Dgrowfs.731 .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,
48 By default, no swap partition is created if an existing swap partition is found
54 script adds any new swap partition to
75 after optionally adding a swap device at the end.
80 the addition of a swap partition is disabled.
83 allows the creation of a swap partition with the default size.
85 the swap partition will be created with the specified size in bytes,
86 even if another swap partition is detected.
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_misc/
H A Dzvol_misc_005_neg.ksh38 # Verify a device cannot be dump and swap at the same time.
42 # 2. Set it as swap device.
56 swap -l | grep -qF $voldev && log_must swap -d $voldev
65 log_assert "Verify a device cannot be dump and swap at the same time."
71 # If device in swap list, it cannot be dump device
72 log_must swap -a $voldev
74 log_must swap -d $voldev
76 # If device has dedicated as dump device, it cannot add into swap list
78 log_mustnot swap -a $voldev
80 log_pass "A device cannot be dump and swap at the same time."
H A Dzvol_misc_004_pos.ksh38 # Verify the ability to take snapshots of zvols used as dump or swap.
42 # 2. Set the volume as dump or swap
61 swap -l | grep -qw $voldev && log_must swap -d $voldev
88 log_assert "Verify the ability to take snapshots of zvols used as dump or swap."
103 # create snapshot over swap zvol
105 log_must swap -a $voldev
110 log_must swap -d $voldev
113 log_pass "Creating snapshots from dump/swap zvols succeeds."
/freebsd/share/examples/bootforth/
H A Dframes.4th74 2dup 1+ swap 5 pick + swap 4 pick 1- -rot
76 2dup swap 1+ swap 5 pick 1- -rot
78 2dup swap 1+ swap 4 pick + 5 pick 1- -rot
82 2dup swap 5 pick + swap at-xy rt_el @ emit \ Draw right top corner
83 2 pick + swap 3 pick + swap at-xy rb_el @ emit
/freebsd/lib/libkvm/
H A Dkvm_getswapinfo.329 .Nd return swap summary statistics for the system
41 structures with swap summary
42 information for each swap device, for up to
49 total of all swap devices (including any devices that go beyond
60 the grand total over all swap devices.
62 from all available swap devices whether or not you made room
70 Each swap partition and the grand total is summarized in the
92 a copy of the swap device flags.
102 If the swap summary information was unobtainable, \-1 is returned;
103 otherwise, the number of swap devices actually retrieved is returned.
[all …]
/freebsd/stand/i386/btx/lib/
H A Dbtxv86.S58 # Swap V86 and user registers.
60 __v86_swap: xchgl %ebp,0x4(%esp,1) # Swap pointer, EBP
61 xchgl %eax,V86_EAX(%ebp) # Swap EAX
62 xchgl %ecx,V86_ECX(%ebp) # Swap ECX
63 xchgl %edx,V86_EDX(%ebp) # Swap EDX
64 xchgl %ebx,V86_EBX(%ebp) # Swap EBX
68 xchgl %eax,V86_EFL(%ebp) # Swap
72 xchgl %eax,V86_EBP(%ebp) # Swap
75 xchgl %esi,V86_ESI(%ebp) # Swap ESI
76 xchgl %edi,V86_EDI(%ebp) # Swap EDI
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A D__split_buffer200 _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI void swap(__split_buffer& __x)
297 swap(__buf);
422 _LIBCPP_CONSTEXPR_SINCE_CXX20 void __split_buffer<_Tp, _Allocator>::swap(__split_buffer& __x)
424 std::swap(__first_, __x.__first_);
425 std::swap(__begin_, __x.__begin_);
426 std::swap(__end_, __x.__end_);
427 std::swap(__end_cap(), __x.__end_cap());
436 std::swap(__first_, __t.__first_);
437 std::swap(__begin_, __t.__begin_);
438 std::swap(__end_, __t.__end_);
[all …]
/freebsd/libexec/rc/rc.d/
H A Dgrowfs35 # Grow root partition to fill available space, optionally adding a swap
65 # Compute upper bound on swap partition size (if added), based on physmem
67 # Rule for swap size based on memory size:
96 # Find newly-added swap partition on parent device ($1).
101 $1 == "type:" && $2 == "freebsd-swap" { swapdev = dev }
149 # A value of 0 suppresses swap addition,
152 # If default, check whether swap is already in fstab;
165 $3 == "swap" { exit 1 }
202 # Do not add swap on disks under 15 GB (decimal) by default.
207 } else if (type[lvl] == "PART" && $11 == "freebsd-swap" && \
[all …]
H A Dzvol12 desc="Activate swap on ZVOLs"
20 # Enable swap on ZVOLs with property org.freebsd:swap=on.
21 zfs list -H -o org.freebsd:swap,name -t volume |
33 # Disable swap on ZVOLs with property org.freebsd:swap=on.
34 zfs list -H -o org.freebsd:swap,name -t volume |
/freebsd/tests/sys/cddl/zfs/tests/zvol/zvol_misc/
H A Dzvol_misc_005_neg.ksh37 # Verify a device cannot be dump and swap at the same time.
41 # 2. Set it as swap device.
58 $SWAP -l | $GREP $voldev > /dev/null 2>&1
60 log_must $SWAP -d $voldev
69 log_assert "Verify a device cannot be dump and swap at the same time."
80 # If device in swap list, it cannot be dump device
81 log_must $SWAP -a $voldev
83 log_must $SWAP -d $voldev
85 # If device has dedicated as dump device, it cannot add into swap list
87 log_mustnot $SWAP -a $voldev
[all …]
/freebsd/stand/forth/
H A Dframes.4th128 swap rot ( y x w -- R: y+h )
130 swap R> R> R> execute
139 2dup 1+ swap 5 pick + swap 4 pick 1- -rot
141 2dup swap 1+ swap 5 pick 1- -rot
143 2dup swap 1+ swap 4 pick + 5 pick 1- -rot
147 2dup swap 5 pick + swap at-xy rt_el @ xemit \ Draw right top corner
148 2 pick + swap 3 pick + swap at-xy rb_el @ xemit
H A Dsupport.4th93 does> create here swap dup @ allot cell+ @ execute
96 : ;structure swap ! ;
99 : ;constructor postpone ; swap cell+ ! ; immediate
112 0 swap .len !
250 tlen swap - dup
254 taddr swap s" console" setenv
275 swap dup c@ dup 32 = over 9 = or over 10 = or
276 over 13 = or over 44 = or swap drop
277 while 1+ swap 1- repeat
278 swap 2 pick 1- over <
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCVSXSwapRemoval.cpp70 // Unique ID (position in the swap vector).
103 // Swap entries are allocated in a vector for better performance.
107 // their swap entries. The key is the address of the MI.
111 // Swap entries are represented by their VSEId fields.
126 // Add an entry to the swap vector and swap map.
130 // source register. VecIdx indicates the swap vector entry to
141 // Record which swap instructions can be safely removed.
148 // Insert a swap instruction from SrcReg to DstReg at the given
156 // Dump a description of the entries in the swap vector.
217 // swap vector and allocate the equivalence class mapping before
[all …]
/freebsd/sys/vm/
H A Dswap_pager.c42 * New Swap System
48 * to arbitrarily small or arbitrarily large swap spaces and an almost
53 * - on the fly reallocation of swap during putpages. The new system
54 * does not try to keep previously allocated swap blocks for dirty
57 * - on the fly deallocation of swap
59 * - No more garbage collection required. Unnecessarily allocated swap
62 * removal of invalidated swap blocks when a page is destroyed
138 * on-disk swap block (or SWAPBLK_NONE). The collection of these
155 static MALLOC_DEFINE(M_VMPGDATA, "vm_pgdata", "swap pager private data");
159 static int nswapdev; /* Number of swap devices */
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_016_pos.ksh38 # 'zpool create' will success with no device in swap
42 # 1. delete all devices in the swap
53 #recover swap devices
57 echo "$sdisk - - swap - no -" >> $FSTAB
70 typeset swap_disks=$(swap -l | awk '!/swapfile/ {print $1}')
73 log_assert "'zpool create' should success with no device in swap."
77 log_note "Executing: swap -d $sdisk"
78 swap -d $sdisk >/dev/null 2>&1 ||
79 log_untested "Unable to delete swap device $sdisk because of" \
/freebsd/contrib/llvm-project/libcxx/include/__concepts/
H A Dswappable.h24 #include <__utility/swap.h>
44 void swap(_Tp&, _Tp&) = delete;
51 swap(std::forward<_Tp>(__t), std::forward<_Up>(__u)); in requires()
72 // 2.1 `S` is `(void)swap(E1, E2)`* if `E1` or `E2` has class or enumeration type and...
73 // *The name `swap` is used here unqualified.
77 noexcept(noexcept(swap(std::forward<_Tp>(__t), std::forward<_Up>(__u)))) { in operator()
78 swap(std::forward<_Tp>(__t), std::forward<_Up>(__u)); in operator()
102 inline constexpr auto swap = __swap::__fn{};
107 concept swappable = requires(_Tp& __a, _Tp& __b) { ranges::swap(__a, __b); }; in requires()
111 ranges::swap(std::forward<_Tp>(__t), std::forward<_Tp>(__t)); in requires()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/zvol/zvol_swap/
H A Dzvol_swap_002_pos.ksh37 # Using a zvol as swap space, fill with files until ENOSPC returned.
42 # 3. Add zvol to swap space
43 # 4. Fill swap space until ENOSPC is returned
55 log_unsupported "Fill swap will cause system hang, hide this case temporarily."
64 log_must $SWAP -d $voldev
68 log_assert "Using a zvol as swap space, fill with files until ENOSPC returned."
71 log_unsupported "ZVOLs as swap devices are not currently supported."
78 $SWAP -l | $GREP zvol
80 log_note "Add zvol volume as swap space"
81 log_must $SWAP -a $voldev
H A Dzvol_swap_003_pos.ksh37 # Verify that a zvol device can be used as a swap device
44 # 4. Modify /etc/vfstab to add entry for zvol as swap device
45 # 5. Use /sbin/swapadd to zvol as swap device throuth /etc/vfstab
82 log_must $SWAP -d $voldev
88 log_assert "Verify that a zvol device can be used as a swap device"\
111 # swap device.
120 if [[ $line == "swap" ]]; then
128 "swap device in $VFSTAB_FILE."
140 log_fail "The system has no swap device configuration in /etc/vfstab"
143 log_note "Add zvol volume as swap space"
[all …]
H A Dzvol_swap_005_pos.ksh42 # 3. Verify swap -a should succeed when swaplow + swaplen <= volume size.
58 test_requires SWAP
64 # the swap area in 512-byte blocks.
77 # At lease one page size was left for swap area
86 # At lease one page size was left for swap area
90 # The minimum swap size should be 2 pagesize.
95 log_must $SWAP -d $swapname
98 log_must $SWAP -a $swapname $swaplow $swaplen
99 log_must $SWAP -d $swapname $swaplow
/freebsd/share/doc/smm/02.config/
H A Db.t45 If a root device is not specified, the swap
54 If no swap area is specified, it defaults to the ``b''
58 first swap partition is selected.
60 If no device is chosen for system dumps, the first swap
72 swap ``b''
78 Multiple swap/paging areas
80 When multiple swap partitions are specified, the system treats the
81 first specified as a ``primary'' swap area which is always used.
95 the swap areas. Normally the dump device is a disk in
98 partition because the primary swap and dump device are commonly

12345678910>>...80