- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for HeapReleased (0.17 sec)
-
src/runtime/debug/garbage_test.go
runtime.ReadMemStats(&after) // Check to make sure that the big allocation (now freed) // had its memory shift into HeapReleased as a result of that // FreeOSMemory. if after.HeapReleased <= before.HeapReleased { t.Fatalf("no memory released: %d -> %d", before.HeapReleased, after.HeapReleased) } // Check to make sure bigBytes was released, plus some slack. Pages may get
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 19 14:30:00 UTC 2023 - 7.2K bytes - Viewed (0) -
src/runtime/mstats.go
throw("heapInUse and consistent stats are not equal") } if gcController.heapReleased.load() != uint64(consStats.released) { print("runtime: heapReleased=", gcController.heapReleased.load(), "\n") print("runtime: consistent value=", consStats.released, "\n") throw("heapReleased and consistent stats are not equal") } heapRetained := gcController.heapInUse.load() + gcController.heapFree.load()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 21:03:13 UTC 2024 - 34.2K bytes - Viewed (0) -
pkg/ctrlz/topics/assets/templates/mem.html
</tr> <tr> <td>HeapIdle</td> <td id="HeapIdle">{{.HeapIdle}} bytes</td> <td>Bytes in idle (unused) spans.</td> </tr> <tr> <td>HeapReleased</td> <td id="HeapReleased">{{.HeapReleased}} bytes</td> <td>Physical memory returned to the OS.</td> </tr> <tr> <td>HeapObjects</td> <td id="HeapObjects">{{.HeapObjects}} objects</td>
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 7.2K bytes - Viewed (0) -
src/runtime/testdata/testprog/gc.go
// heapBacked is an estimate of the amount of physical memory used by // this test. HeapSys is an estimate of the size of the mapped virtual // address space (which may or may not be backed by physical pages) // whereas HeapReleased is an estimate of the amount of bytes returned // to the OS. Their difference then roughly corresponds to the amount // of virtual address space that is backed by physical pages. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Oct 02 02:28:27 UTC 2022 - 12.1K bytes - Viewed (0) -
src/runtime/malloc_test.go
} } eq := func(x any) func(any) error { return func(y any) error { if x == y { return nil } return fmt.Errorf("want %v", x) } } // Of the uint fields, HeapReleased, HeapIdle can be 0. // PauseTotalNs can be 0 if timer resolution is poor. fields := map[string][]func(any) error{ "Alloc": {nz, le(1e10)}, "TotalAlloc": {nz, le(1e11)}, "Sys": {nz, le(1e10)},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 05 23:35:29 UTC 2023 - 10.6K bytes - Viewed (0) -
src/runtime/debug/garbage.go
// managed by the Go runtime). // // More specifically, the following expression accurately reflects // the value the runtime attempts to maintain as the limit: // // runtime.MemStats.Sys - runtime.MemStats.HeapReleased // // or in terms of the runtime/metrics package: // // /memory/classes/total:bytes - /memory/classes/heap/released:bytes // // A zero limit or a limit that's lower than the amount of memory
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.9K bytes - Viewed (0) -
src/runtime/arena.go
sysFault(unsafe.Pointer(s.base()), s.npages*pageSize) // Everything on the list is counted as in-use, however sysFault transitions to // Reserved, not Prepared, so we skip updating heapFree or heapReleased and just // remove the memory from the total altogether; it's just address space now. gcController.heapInUse.add(-int64(s.npages * pageSize)) // Count this as a free of an object right now as opposed to when
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:44:56 UTC 2024 - 37.9K bytes - Viewed (0) -
src/runtime/pprof/pprof.go
fmt.Fprintf(w, "# HeapSys = %d\n", s.HeapSys) fmt.Fprintf(w, "# HeapIdle = %d\n", s.HeapIdle) fmt.Fprintf(w, "# HeapInuse = %d\n", s.HeapInuse) fmt.Fprintf(w, "# HeapReleased = %d\n", s.HeapReleased) fmt.Fprintf(w, "# HeapObjects = %d\n", s.HeapObjects) fmt.Fprintf(w, "# Stack = %d / %d\n", s.StackInuse, s.StackSys) fmt.Fprintf(w, "# MSpan = %d / %d\n", s.MSpanInuse, s.MSpanSys)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:52:17 UTC 2024 - 30.6K bytes - Viewed (0) -
src/runtime/mheap.go
// // The allocation is always aligned to the heap arena // size which is always > physPageSize, so its safe to // just add directly to heapReleased. sysMap(unsafe.Pointer(v), nBase-v, &gcController.heapReleased) // The memory just allocated counts as both released // and idle, even though it's not yet backed by spans. stats := memstats.heapStats.acquire()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:31:00 UTC 2024 - 78K bytes - Viewed (0) -
src/runtime/export_test.go
chunk := mheap_.pages.tryChunkOf(i) if chunk == nil { continue } pg := chunk.scavenged.popcntRange(0, pallocChunkPages) slow.HeapReleased += uint64(pg) * pageSize } for _, p := range allp { pg := sys.OnesCount64(p.pcache.scav) slow.HeapReleased += uint64(pg) * pageSize } getg().m.mallocing-- }) startTheWorld(stw) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0)