Home
last modified time | relevance | path

Searched refs:MB (Results 1 - 25 of 141) sorted by relevance

123456

/third_party/python/Include/internal/
H A Dpycore_blocks_output_buffer.h59 #define MB (1024*1024) macro
61 { 32*KB, 64*KB, 256*KB, 1*MB, 4*MB, 8*MB, 16*MB, 16*MB,
62 32*MB, 32*MB, 32*MB, 32*MB, 6
65 #undef MB global() macro
[all...]
/third_party/ltp/testcases/kernel/controllers/memcg/
H A Dmemcontrol03.c186 alloc_pagecache_in_child(leaf_cg[i], MB(50)); in test_memcg_min()
198 if (values_close(c[0], MB(150), 3)) in test_memcg_min()
204 alloc_anon_in_child(trunk_cg[G], MB(148), 0); in test_memcg_min()
207 TST_EXP_EXPR(values_close(c[0], MB(50), 5), in test_memcg_min()
208 "(A/B memory.current=%ld) ~= %d", c[0], MB(50)); in test_memcg_min()
213 TST_EXP_EXPR(values_close(c[0], MB(33), 20), in test_memcg_min()
214 "(A/B/C memory.current=%ld) ~= %d", c[0], MB(33)); in test_memcg_min()
215 TST_EXP_EXPR(values_close(c[1], MB(17), 20), in test_memcg_min()
216 "(A/B/D memory.current=%ld) ~= %d", c[1], MB(17)); in test_memcg_min()
220 alloc_anon_in_child(trunk_cg[G], MB(17 in test_memcg_min()
[all...]
H A Dmemcontrol04.c157 alloc_pagecache_in_child(leaf_cg[i], MB(50)); in test_memcg_low()
167 alloc_anon_in_child(trunk_cg[G], MB(148)); in test_memcg_low()
170 TST_EXP_EXPR(values_close(c[0], MB(50), 5), in test_memcg_low()
171 "(A/B memory.current=%ld) ~= %d", c[0], MB(50)); in test_memcg_low()
176 TST_EXP_EXPR(values_close(c[0], MB(33), 20), in test_memcg_low()
177 "(A/B/C memory.current=%ld) ~= %d", c[C], MB(33)); in test_memcg_low()
178 TST_EXP_EXPR(values_close(c[1], MB(17), 20), in test_memcg_low()
179 "(A/B/D memory.current=%ld) ~= %d", c[D], MB(17)); in test_memcg_low()
184 alloc_anon_in_child(trunk_cg[G], MB(166)); in test_memcg_low()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ToolDrivers/llvm-lib/
H A DLibDriver.cpp145 static COFF::MachineTypes getCOFFFileMachine(MemoryBufferRef MB) { in getCOFFFileMachine() argument
147 object::COFFObjectFile Obj(MB, EC); in getCOFFFileMachine()
149 llvm::errs() << MB.getBufferIdentifier() in getCOFFFileMachine()
159 llvm::errs() << MB.getBufferIdentifier() << ": unknown machine: " << Machine in getCOFFFileMachine()
167 static COFF::MachineTypes getBitcodeFileMachine(MemoryBufferRef MB) { in getBitcodeFileMachine() argument
168 Expected<std::string> TripleStr = getBitcodeTargetTriple(MB); in getBitcodeFileMachine()
170 llvm::errs() << MB.getBufferIdentifier() in getBitcodeFileMachine()
185 llvm::errs() << MB.getBufferIdentifier() in getBitcodeFileMachine()
193 std::string &LibMachineSource, MemoryBufferRef MB) { in appendFile()
194 file_magic Magic = identify_magic(MB in appendFile()
191 appendFile(std::vector<NewArchiveMember> &Members, COFF::MachineTypes &LibMachine, std::string &LibMachineSource, MemoryBufferRef MB) appendFile() argument
[all...]
/third_party/ltp/testcases/kernel/mem/lib/
H A Dmem.c79 int ret = alloc_mem(TESTMEM * 2 + MB, testcase); in child_alloc()
115 * @lite: if non-zero, child makes only single TESTMEM+MB allocation
346 if (ksm_merge_data.mergeable_size == size * MB) { in ksm_child_memset()
347 tst_res(TINFO, "child %d allocates %d MB filled with '%c'", in ksm_child_memset()
351 tst_res(TINFO, "child %d allocates %d MB filled with '%c'" in ksm_child_memset()
357 for (i = 0; (unsigned int)i < unit * MB; i++) in ksm_child_memset()
364 if (ksm_merge_data.mergeable_size < size * MB) in ksm_child_memset()
380 memory[j] = SAFE_MMAP(NULL, unit * MB, PROT_READ|PROT_WRITE, in create_ksm_child()
383 if (madvise(memory[j], unit * MB, MADV_MERGEABLE) == -1) in create_ksm_child()
404 if (ksm_merge_data[j].mergeable_size < size * MB) { in create_ksm_child()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A DMemory.cpp44 raw_ostream &operator<<(raw_ostream &OS, const MemoryBlock &MB) { in operator <<() argument
45 return OS << "[ " << MB.base() << " .. " in operator <<()
46 << (void *)((char *)MB.base() + MB.allocatedSize()) << " ] (" in operator <<()
47 << MB.allocatedSize() << " bytes)"; in operator <<()
H A DMemoryBuffer.cpp83 template<typename MB>
84 class MemoryBufferMem : public MB {
106 template <typename MB>
107 static ErrorOr<std::unique_ptr<MB>>
168 template<typename MB>
169 class MemoryBufferMMapFile : public MB {
187 : MFR(FD, MB::Mapmode, getLegalMapSize(Len, Offset), in MemoryBufferMMapFile()
237 template <typename MB>
238 static ErrorOr<std::unique_ptr<MB>>
243 template <typename MB>
[all...]
H A DSpecialCaseList.cpp82 std::unique_ptr<SpecialCaseList> SpecialCaseList::create(const MemoryBuffer *MB, in create() argument
85 if (SCL->createInternal(MB, Error)) in create()
118 bool SpecialCaseList::createInternal(const MemoryBuffer *MB, in createInternal() argument
121 if (!parse(MB, Sections, Error)) in createInternal()
126 bool SpecialCaseList::parse(const MemoryBuffer *MB, in parse() argument
131 MB->getBuffer().split(Lines, '\n'); in parse()
/third_party/ltp/testcases/kernel/numa/
H A Dnuma01.sh40 # $3 - Size for multiplication (e.g. 1024, $MB)
71 export MB=$((1024*1024))
100 mem_curr=$(get_mem_cur $pid $node $MB)
101 if [ $(echo "$mem_curr < $MB" | bc) -eq 1 ]; then
134 mem_curr=$(get_mem_cur $pid $Preferred_node $MB)
135 if [ $(echo "$mem_curr < $MB" |bc ) -eq 1 ]; then
154 Exp_incr=$(echo "$MB / $total_nodes" |bc)
162 mem_curr=$(get_mem_cur $pid $node $MB)
219 mem_curr=$(get_mem_cur $pid $node $MB)
220 if [ $(echo "$mem_curr < $MB" |b
[all...]
H A Dsupport_numa.c44 #define MB (1<<20) macro
53 printf(" argv[1] == \"alloc_1MB\" then allocate 1MB of memory\n"); in help()
100 buf = malloc(MB); in main()
105 for (i = 0; i < MB; i += PAGE_SIZE) { in main()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ToolDrivers/llvm-dlltool/
H A DDlltoolDriver.cpp58 ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> MB = MemoryBuffer::getFile(Path); in openFile() local
60 if (std::error_code EC = MB.getError()) { in openFile()
65 return std::move(*MB); in openFile()
112 std::unique_ptr<MemoryBuffer> MB = in dlltoolDriverMain() local
114 if (!MB) in dlltoolDriverMain()
117 if (!MB->getBufferSize()) { in dlltoolDriverMain()
132 parseCOFFModuleDefinition(*MB, Machine, true); in dlltoolDriverMain()
/third_party/ltp/testcases/kernel/mem/mtest06/
H A Dmmap2.c51 /* large (by default 128MB) file. */
76 #define MB (1024 * 1024) macro
102 while (index < (size * MB)) { in mkfile()
139 "128MB\n" in usage()
201 "fsize %lu MB\n", fsize = 128); in main()
218 "\tSize of temp file in MB: %lu\n", exec_time, fsize); in main()
255 memptr = mmap(0, (fsize * MB), PROT_READ | PROT_WRITE, in main()
264 memset(memptr, 'A', ((fsize * MB) / sizeof(char))); in main()
266 if (msync(memptr, ((fsize * MB) / sizeof(char)), in main()
272 if (munmap(memptr, (fsize * MB) / sizeo in main()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/
H A DSectionMemoryManager.cpp104 sys::MemoryBlock MB = MMapper.allocateMappedMemory( in allocateSection() local
113 MemGroup.Near = MB; in allocateSection()
116 MemGroup.AllocatedMem.push_back(MB); in allocateSection()
117 Addr = (uintptr_t)MB.base(); in allocateSection()
118 uintptr_t EndOfBlock = Addr + MB.allocatedSize(); in allocateSection()
197 for (sys::MemoryBlock &MB : MemGroup.PendingMem) in applyMemoryGroupPermissions()
198 if (std::error_code EC = MMapper.protectMappedMemory(MB, Permissions)) in applyMemoryGroupPermissions()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCTargetDesc.h61 static inline bool isRunOfOnes(unsigned Val, unsigned &MB, unsigned &ME) { in isRunOfOnes() argument
67 MB = countLeadingZeros(Val); in isRunOfOnes()
77 MB = countLeadingZeros((Val - 1) ^ Val) + 1; in isRunOfOnes()
85 static inline bool isRunOfOnes64(uint64_t Val, unsigned &MB, unsigned &ME) { in isRunOfOnes64() argument
91 MB = countLeadingZeros(Val); in isRunOfOnes64()
101 MB = countLeadingZeros((Val - 1) ^ Val) + 1; in isRunOfOnes64()
/third_party/node/deps/v8/tools/heap-stats/
H A Dhelper.js6 const MB = KB * KB;
7 const GB = MB * KB;
/third_party/node/deps/v8/tools/zone-stats/
H A Dhelper.js6 const MB = KB * KB;
7 const GB = MB * KB;
11 const units = [' B', ' KB', ' MB', ' GB'];
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
H A DSpecialCaseList.h76 static std::unique_ptr<SpecialCaseList> create(const MemoryBuffer *MB,
109 bool createInternal(const MemoryBuffer *MB, std::string &Error);
144 bool parse(const MemoryBuffer *MB, StringMap<size_t> &SectionsMap,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
H A DRDFRegisters.cpp86 const uint32_t *MB = RegMasks.get(M); in PhysicalRegisterInfo() local
88 if (!(MB[i/32] & (1u << (i%32)))) in PhysicalRegisterInfo()
107 const uint32_t *MB = getRegMaskBits(Reg); in getAliasSet() local
109 if (MB[i/32] & (1u << (i%32))) in getAliasSet()
164 const uint32_t *MB = getRegMaskBits(RM.Reg); in aliasRM() local
165 bool Preserved = MB[RR.Reg/32] & (1u << (RR.Reg%32)); in aliasRM()
186 if (!(MB[SR/32] & (1u << (SR%32)))) in aliasRM()
/third_party/node/deps/base64/base64/test/
H A Dbenchmark.c36 #define MB (1024 * KB) macro
55 { "10 MB", MB * 10, 10, 1 },
56 { "1 MB", MB * 1, 10, 10 },
65 return bytes / (float) MB; in bytes_to_mb()
102 printf("Filling buffer with %.1f MB of random data...\n", bytes_to_mb(b->regsz)); in get_random_data()
198 printf("%s\tencode\t%.02f MB/sec\n", name, bytes_to_mb(b->regsz) / fastest); in codec_bench_enc()
227 printf("%s\tdecode\t%.02f MB/sec\n", name, bytes_to_mb(b->encsz) / fastest); in codec_bench_dec()
/third_party/ltp/testcases/kernel/mem/oom/
H A Doom03.c56 * 1MB for CGroup v2. in verify_oom()
59 SAFE_CG_PRINTF(tst_cg, "memory.swap.max", "%lu", MB); in verify_oom()
61 SAFE_CG_PRINTF(tst_cg, "memory.swap.max", "%lu", TESTMEM + MB); in verify_oom()
H A Doom05.c65 SAFE_CG_PRINTF(tst_cg, "memory.swap.max", "%lu", MB); in verify_oom()
67 SAFE_CG_PRINTF(tst_cg, "memory.swap.max", "%lu", TESTMEM + MB); in verify_oom()
/third_party/node/deps/v8/src/heap/
H A Dheap-controller.h17 static constexpr size_t kMinSize = 128u * Heap::kHeapLimitMultiplier * MB;
18 static constexpr size_t kMaxSize = 1024u * Heap::kHeapLimitMultiplier * MB;
H A Dincremental-marking.cc133 heap()->OldGenerationSizeOfObjects() / MB; in Start()
135 heap()->old_generation_allocation_limit() / MB; in Start()
136 const size_t global_size_mb = heap()->GlobalSizeOfObjects() / MB; in Start()
137 const size_t global_limit_mb = heap()->global_allocation_limit() / MB; in Start()
583 static_cast<int>(heap()->OldGenerationSizeOfObjects() / MB); in Stop()
585 static_cast<int>(heap()->old_generation_allocation_limit() / MB); in Stop()
791 size_t oom_slack = heap()->new_space()->Capacity() + 64 * MB; in StepSizeToMakeProgress()
859 size_t kScheduleMarginInBytes = step_origin == StepOrigin::kV8 ? 1 * MB : 0; in ComputeStepSizeInBytes()
/third_party/node/deps/v8/src/common/
H A Dglobals.h83 // Slightly less than 1MB, since Windows' default stack size for
84 // the main execution thread is 1MB for both 32 and 64-bit.
105 // Sanity-check, assuming that we aim for a real OS stack size of at least 1MB.
108 MB);
251 constexpr size_t kMaxWasmCodeMemory = kMaxWasmCodeMB * MB;
260 constexpr size_t kMaximalCodeRangeSize = 512 * MB;
263 constexpr size_t kMaximalCodeRangeSize = 128 * MB;
266 constexpr size_t kMaximalCodeRangeSize = 128 * MB;
270 constexpr size_t kMinimumCodeRangeSize = 4 * MB;
273 constexpr size_t kMinimumCodeRangeSize = 3 * MB;
[all...]
/third_party/lz4/tests/
H A DcheckFrame.c49 #define MB *(1U<<20) macro
101 ress->srcBufferSize = 4 MB; in createCResources()
103 ress->dstBufferSize = 4 MB; in createCResources()

Completed in 14 milliseconds

123456