Home
last modified time | relevance | path

Searched refs:total_ram (Results 1 – 4 of 4) sorted by relevance

/external/ltp/testcases/kernel/mem/mtest01/
Dmtest01.c85 unsigned long long total_ram, total_free, D, C; in main() local
151 total_ram = sstats.totalram + sstats.totalswap; in main()
155 max_pids = total_ram * sstats.mem_unit in main()
163 C = sstats.mem_unit * (total_ram - total_free); in main()
171 D = percent * (sstats.mem_unit * total_ram); in main()
/external/ltp/testcases/kernel/io/ltp-aiodio/
Daio-stress.c1015 size_t total_ram; local
1019 total_ram = num_files * depth * padded_reclen + num_threads;
1021 total_ram += padded_reclen;
1024 total_ram += page_size_mask;
1027 p = malloc(total_ram);
1029 shm_id = shmget(IPC_PRIVATE, total_ram, IPC_CREAT | 0700);
1053 ftruncate(fd, total_ram);
1055 p = mmap((char *)0x50000000, total_ram,
/external/autotest/client/tests/aiostress/
Daio-stress.c998 size_t total_ram; local
1002 total_ram = num_files * depth * padded_reclen + num_threads;
1004 total_ram += padded_reclen;
1007 p = malloc(total_ram + page_size_mask);
1009 shm_id = shmget(IPC_PRIVATE, total_ram, IPC_CREAT | 0700);
1033 ftruncate(fd, total_ram);
1035 p = mmap((char *)0x50000000, total_ram,
/external/mesa3d/src/intel/vulkan/
Danv_device.c81 uint64_t total_ram = (uint64_t)info.totalram * (uint64_t)info.mem_unit; in anv_compute_heap_size() local
87 if (total_ram <= 4ull * 1024ull * 1024ull * 1024ull) in anv_compute_heap_size()
88 available_ram = total_ram / 2; in anv_compute_heap_size()
90 available_ram = total_ram * 3 / 4; in anv_compute_heap_size()