High memory cost of single g_assert() call
- From: Umut Tezduyar Lindskog <umut tezduyar com>
- To: gtk-list gnome org
- Subject: High memory cost of single g_assert() call
- Date: Fri, 16 Feb 2018 12:56:54 +0100
I am quite puzzled to see that a single call to glib, g_assert() [1]
is paging in 488 kB [2] of memory for the text section of the library.
That seems to be way too much. What is the rationale behind this?
[1]
int main()
{
volatile int i = 1;
g_assert (i > 0);
sleep (9999);
return 0;
}
[2]
7f31ac9c4000-7f31acad5000 r-xp 00000000 fd:00 32797
/lib/x86_64-linux-gnu/libglib-2.0.so.0.5400.1
Size: 1092 kB
Rss: 488 kB
Pss: 205 kB
Shared_Clean: 340 kB
Shared_Dirty: 0 kB
Private_Clean: 148 kB
Private_Dirty: 0 kB
Referenced: 488 kB
Anonymous: 0 kB
LazyFree: 0 kB
AnonHugePages: 0 kB
ShmemPmdMapped: 0 kB
Shared_Hugetlb: 0 kB
Private_Hugetlb: 0 kB
Swap: 0 kB
SwapPss: 0 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
Locked: 0 kB
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]