pub struct Budget {
pub ram_kib: u64,
pub cache_ram_kib: u64,
pub cpus: u32,
}Expand description
The budgeted resources every tuning value is derived from.
Fields§
§ram_kib: u64Memory, in kibibytes, that PostgreSQL may size its allocated caches against (shared_buffers, work_mem, and the rest).
cache_ram_kib: u64Memory, in kibibytes, the operating system and PostgreSQL together have
for caching data, used to size effective_cache_size. Unlike ram_kib
this is not subject to the Windows shared-memory ceiling, because it is a
planner hint about the whole box rather than memory PostgreSQL allocates.
cpus: u32CPUs PostgreSQL may spread parallel work across.
Trait Implementations§
impl Copy for Budget
impl Eq for Budget
impl StructuralPartialEq for Budget
Auto Trait Implementations§
impl Freeze for Budget
impl RefUnwindSafe for Budget
impl Send for Budget
impl Sync for Budget
impl Unpin for Budget
impl UnsafeUnpin for Budget
impl UnwindSafe for Budget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more