ClickHouse/src/Common
filimonov 24d72a18d0
Update getNumberOfPhysicalCPUCores.cpp
In Kubernetes shares are calculated from resources.requests.cpu, quota & period - from limits.

When you configure only requests without limits - the container still can use all the cores. So you see all the cores the system has.
(because of requests the pod just can't be scheduled on the node which have less cpus)
So the effective CPU count is all the available cores if you don't have limits, or calculated from quota & period if you have the limits.
2022-03-31 17:21:54 +02:00
..
Config Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
examples clang-tidy check performance-noexcept-move-constructor fix 2022-03-02 18:15:27 +00:00
HashTable Predict size of hash table for GROUP BY (#33439) 2022-03-30 22:47:51 +02:00
JSONParsers Merge remote-tracking branch 'upstream/master' into HEAD 2022-03-16 15:28:09 +00:00
mysqlxx Merge pull request #35462 from kitaisreal/mysqlxx-pool-with-failover-style-fix 2022-03-21 20:30:55 +01:00
StringUtils
tests merge master and fix conflict 2022-03-23 11:36:50 +08:00
ZooKeeper more logs 2022-03-22 19:05:37 +01:00
ActionBlocker.h
ActionLock.cpp clang-tidy check performance-noexcept-move-constructor fix 2022-03-02 18:15:27 +00:00
ActionLock.h clang-tidy check performance-noexcept-move-constructor fix 2022-03-02 18:15:27 +00:00
AlignedBuffer.cpp
AlignedBuffer.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
Allocator_fwd.h
Allocator.cpp
Allocator.h
AllocatorWithMemoryTracking.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
Arena.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
ArenaAllocator.h
ArenaUtils.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
ArenaWithFreeLists.h Merge branch 'master' into parallel-downloading-url-engine 2022-03-15 07:55:41 +00:00
ArrayCache.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
assert_cast.h
BitHelpers.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
checkStackSize.cpp Fix tests that relies on checking stack size under TSan 2021-10-23 14:09:19 +03:00
checkStackSize.h
clearPasswordFromCommandLine.cpp Miscellaneous 2021-10-31 18:11:46 +03:00
clearPasswordFromCommandLine.h
clickhouse_malloc.cpp
ClickHouseRevision.cpp Remove cruft 2021-10-28 02:10:39 +03:00
ClickHouseRevision.h
CMakeLists.txt Remove unbundled mysql support 2022-01-20 10:02:01 +03:00
ColumnsHashing.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
ColumnsHashingImpl.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
CombinedCardinalityEstimator.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
CompactArray.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
ConcurrentBoundedQueue.h clang-tidy check performance-move-const-arg fix 2022-03-02 18:15:27 +00:00
config_version.h.in
config.h.in add comments and small refactoring 2022-02-17 22:00:25 +03:00
CounterInFile.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
COW.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
CpuId.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
createHardLink.cpp
createHardLink.h
CurrentMemoryTracker.cpp
CurrentMemoryTracker.h
CurrentMetrics.cpp support async inserts in clickhouse-client for queries with inlined data 2022-02-02 20:59:37 +03:00
CurrentMetrics.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
CurrentThread.cpp
CurrentThread.h
DateLUT.cpp Move code around to avoid dlsym on Musl 2021-12-24 12:25:27 +03:00
DateLUT.h Move code around to avoid dlsym on Musl 2021-12-24 12:25:27 +03:00
DateLUTImpl.cpp Saturate date/datetime to zero 2022-01-03 02:07:08 +03:00
DateLUTImpl.h Replace a few uses of enable_if for SFINAE by concepts 2022-03-16 19:51:38 +01:00
DNSResolver.cpp Refactor client fault tolerant connection 2022-02-10 12:43:08 +03:00
DNSResolver.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
Dwarf.cpp Don't unwind inlines if we unable to do it 2022-03-22 11:11:36 +01:00
Dwarf.h Don't unwind inlines if we unable to do it 2022-03-22 11:11:36 +01:00
Elf.cpp just more verbose comment 2021-11-23 12:56:14 +00:00
Elf.h get Build ID via Section headers first 2021-11-23 12:56:14 +00:00
Epoll.cpp clang-tidy check performance-noexcept-move-constructor fix 2022-03-02 18:15:27 +00:00
Epoll.h clang-tidy check performance-noexcept-move-constructor fix 2022-03-02 18:15:27 +00:00
ErrorCodes.cpp Merge branch 'master' into improve-backup-and-restore 2022-03-21 11:49:26 +01:00
ErrorCodes.h
escapeForFileName.cpp
escapeForFileName.h
EventCounter.h
Exception.cpp Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
Exception.h Use compile-time check for Exception messages, fix wrong messages 2022-03-29 13:16:11 +00:00
ExponentiallySmoothedCounter.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
ExternalLoaderStatus.h
Fiber.h
FiberStack.h Increase stack size 2022-03-24 15:50:32 +01:00
FieldVisitorConvertToNumber.h Merge pull request #23932 from CurtizJ/dynamic-columns 2022-03-17 10:45:46 +01:00
FieldVisitorDump.cpp Merge remote-tracking branch 'upstream/master' into HEAD 2022-01-21 20:11:18 +03:00
FieldVisitorDump.h Merge remote-tracking branch 'upstream/master' into HEAD 2022-01-21 20:11:18 +03:00
FieldVisitorHash.cpp Merge remote-tracking branch 'upstream/master' into HEAD 2022-01-21 20:11:18 +03:00
FieldVisitorHash.h Merge remote-tracking branch 'upstream/master' into HEAD 2022-03-16 15:28:09 +00:00
FieldVisitors.h Minor changes 2021-06-14 07:13:35 +03:00
FieldVisitorsAccurateComparison.h Some improvements and fixes for Bool data type 2022-01-20 14:16:11 +03:00
FieldVisitorSum.cpp Merge remote-tracking branch 'upstream/master' into HEAD 2022-01-21 20:11:18 +03:00
FieldVisitorSum.h Merge pull request #23932 from CurtizJ/dynamic-columns 2022-03-17 10:45:46 +01:00
FieldVisitorToString.cpp Merge remote-tracking branch 'upstream/master' into HEAD 2022-01-21 20:11:18 +03:00
FieldVisitorToString.h Merge remote-tracking branch 'upstream/master' into HEAD 2022-01-21 20:11:18 +03:00
FieldVisitorWriteBinary.cpp Merge remote-tracking branch 'upstream/master' into HEAD 2022-01-21 20:11:18 +03:00
FieldVisitorWriteBinary.h Merge remote-tracking branch 'upstream/master' into HEAD 2022-01-21 20:11:18 +03:00
FileCache_fwd.h Add limit for file segment size and split it if exceeds the limit 2022-02-19 18:59:22 +01:00
FileCache.cpp Update 2022-03-11 14:24:02 +01:00
FileCache.h Clean up code 2022-03-09 10:36:52 +01:00
FileCacheFactory.cpp Add limit for file segment size and split it if exceeds the limit 2022-02-19 18:59:22 +01:00
FileCacheFactory.h Add limit for file segment size and split it if exceeds the limit 2022-02-19 18:59:22 +01:00
FileChecker.cpp Implement BACKUP and RESTORE for MatViews. 2022-03-21 11:45:21 +01:00
FileChecker.h Implement BACKUP & RESTORE for the Memory table engine. 2022-03-20 20:02:15 +01:00
FileSegment.cpp Add missing __builtin_unreachable for switch/case for gcc 2022-03-26 23:42:21 +03:00
FileSegment.h Fix 2022-03-17 18:30:32 +01:00
filesystemHelpers.cpp Fix style 2022-03-24 11:25:28 +01:00
filesystemHelpers.h cosmetic bugfix 2022-03-24 15:30:10 +01:00
FileUpdatesTracker.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
format.h Fix style 2022-03-28 17:48:47 +08:00
formatIPv6.cpp
formatIPv6.h Fix parsing of IPv6 addresses longer than 39 characters 2022-03-23 16:11:46 +01:00
formatReadable.cpp
formatReadable.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
FrequencyHolder.h Fixed style check 2022-03-16 16:16:08 +00:00
getCurrentProcessFDCount.cpp Slightly better 2021-11-19 12:30:58 +03:00
getCurrentProcessFDCount.h code style change 2021-11-12 20:48:42 +08:00
getExecutablePath.cpp
getExecutablePath.h
getHashOfLoadedBinary.cpp
getHashOfLoadedBinary.h
getMappedArea.cpp
getMappedArea.h
getMaxFileDescriptorCount.cpp Slightly better 2021-11-19 12:30:58 +03:00
getMaxFileDescriptorCount.h code style change 2021-11-12 20:48:42 +08:00
getMultipleKeysFromConfig.cpp
getMultipleKeysFromConfig.h
getNumberOfPhysicalCPUCores.cpp Update getNumberOfPhysicalCPUCores.cpp 2022-03-31 17:21:54 +02:00
getNumberOfPhysicalCPUCores.h
GetPriorityForLoadBalancing.cpp minor fixes 2022-03-21 15:55:01 +01:00
GetPriorityForLoadBalancing.h minor fixes 2022-03-21 15:55:01 +01:00
getRandomASCIIString.cpp Fix clang tidy 2021-12-14 15:34:20 +03:00
getRandomASCIIString.h Fix clang tidy 2021-12-14 15:34:20 +03:00
getResource.cpp Move code around to avoid dlsym on Musl 2021-12-24 12:25:27 +03:00
getResource.h Move code around to avoid dlsym on Musl 2021-12-24 12:25:27 +03:00
hasLinuxCapability.cpp
hasLinuxCapability.h
hex.cpp
hex.h Switch to XML format for backup's metadata. 2021-11-09 23:16:45 +03:00
HyperLogLogBiasEstimator.h
HyperLogLogCounter.h Replace more uses of std::enable_if for SFINAE by concepts 2022-03-17 20:44:55 +01:00
HyperLogLogWithSmallSetOptimization.h
IFactoryWithAliases.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
Increment.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
interpolate.h
InterruptListener.h
IntervalKind.cpp Move current work from old laptop 2022-02-07 21:44:14 +03:00
IntervalKind.h Merge branch 'master' into issue_33147 2022-03-21 13:40:17 +00:00
IntervalTree.h Replace more uses of std::enable_if for SFINAE by concepts 2022-03-17 20:44:55 +01:00
intExp.h
IO.cpp
IO.h
IPv6ToBinary.cpp
IPv6ToBinary.h
isLocalAddress.cpp minor fixes 2022-03-21 15:55:01 +01:00
isLocalAddress.h
isValidUTF8.cpp Move isValidUTF8Naive from Functions to Common 2021-08-23 09:22:15 +03:00
isValidUTF8.h Rename "common" to "base" 2021-10-02 10:13:14 +03:00
JSONBuilder.cpp
JSONBuilder.h Replace a few uses of enable_if for SFINAE by concepts 2022-03-16 19:51:38 +01:00
LocalDate.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
LocalDateTime.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
LockMemoryExceptionInThread.cpp Move LockMemoryExceptionInThread and MemoryTrackerBlockerInThread 2022-01-10 22:39:10 +03:00
LockMemoryExceptionInThread.h fix build on USE_DEBUG_HELPERS OFF 2022-01-24 14:29:38 +08:00
LRUCache.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
LRUResourceCache.h fixed some bugs 2022-01-12 17:01:05 +08:00
Macros.cpp Use shard and replica name from Replicated database arguments (#31488) 2021-11-23 12:41:54 +03:00
Macros.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
malloc.cpp Fix alignment for aligned_alloc() to fix build for glibc2.35+ 2022-02-26 13:04:38 +03:00
memcmpSmall.h Add x86 feature avx512 support for memcmpSmall 2022-01-14 20:21:22 +08:00
memcpySmall.h
memory.h Cleanup jemalloc contrib 2022-01-20 10:02:03 +03:00
MemorySanitizer.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
MemoryStatisticsOS.cpp use getPageSize, correct typo 2022-02-25 17:02:49 +03:00
MemoryStatisticsOS.h Implement MemoryStatisticsOS for FreeBSD 2022-02-25 14:05:00 +03:00
MemoryTracker.cpp Update src/Common/MemoryTracker.cpp 2022-02-01 16:15:00 +03:00
MemoryTracker.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
MemoryTrackerBlockerInThread.cpp Move LockMemoryExceptionInThread and MemoryTrackerBlockerInThread 2022-01-10 22:39:10 +03:00
MemoryTrackerBlockerInThread.h fix build on USE_DEBUG_HELPERS OFF 2022-01-24 14:29:38 +08:00
MultiVersion.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
NamePrompter.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
NaNUtils.h
NetException.h
new_delete.cpp Cleanup jemalloc contrib 2022-01-20 10:02:03 +03:00
ObjectPool.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
OpenSSLHelpers.cpp Remove cruft 2021-10-28 02:10:39 +03:00
OpenSSLHelpers.h Remove cruft 2021-10-28 02:10:39 +03:00
OpenTelemetryTraceContext.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
OptimizedRegularExpression.cpp
OptimizedRegularExpression.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
OvercommitTracker.cpp Update src/Common/OvercommitTracker.cpp 2022-03-24 17:47:48 +01:00
OvercommitTracker.h Update comments for OvercommitTracker 2022-02-21 15:45:17 +00:00
parseAddress.cpp
parseAddress.h
parseGlobs.cpp
parseGlobs.h
parseRemoteDescription.cpp Updated additional cases 2021-12-20 15:55:07 +03:00
parseRemoteDescription.h
PipeFDs.cpp Rename "common" to "base" 2021-10-02 10:13:14 +03:00
PipeFDs.h
PODArray_fwd.h
PODArray.cpp
PODArray.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
PoolBase.h fixed code styles 2022-01-29 09:46:00 +08:00
PoolWithFailoverBase.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
ProcfsMetricsProvider.cpp Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
ProcfsMetricsProvider.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
ProfileEvents.cpp Predict size of hash table for GROUP BY (#33439) 2022-03-30 22:47:51 +02:00
ProfileEvents.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
ProfilingScopedRWLock.h
ProgressIndication.cpp Fix error 2022-02-22 01:32:23 +01:00
ProgressIndication.h Always display resource usage in client 2021-12-29 01:20:34 +03:00
QueryProfiler.cpp Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
QueryProfiler.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
quoteString.cpp
quoteString.h
RadixSort.h Improve performance of ASOF join 2022-03-23 12:19:38 +01:00
randomSeed.cpp
randomSeed.h
RangeGenerator.h Address PR review 2022-03-28 08:19:23 +00:00
remapExecutable.cpp Log size of remapped memory (remap_executable) 2021-11-04 00:19:00 +03:00
remapExecutable.h Log size of remapped memory (remap_executable) 2021-11-04 00:19:00 +03:00
RemoteHostFilter.cpp Always clear hosts. 2022-03-15 14:08:56 +00:00
RemoteHostFilter.h Reload remote_url_allow_hosts after config update. 2022-03-15 13:00:31 +00:00
renameat2.cpp Fix build 2021-11-25 04:18:54 +03:00
renameat2.h
RWLock.cpp Fix half of typos 2020-08-08 03:47:03 +03:00
RWLock.h
SensitiveDataMasker.cpp
SensitiveDataMasker.h
setThreadName.cpp Fix clang-tidy 2021-11-14 04:57:59 +03:00
setThreadName.h Remove thread_local std::string 2021-11-14 02:43:17 +03:00
SettingsChanges.cpp
SettingsChanges.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
SharedBlockRowRef.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
SharedLibrary.cpp
SharedLibrary.h
ShellCommand.cpp Updated executable function integration tests 2021-12-28 22:55:30 +03:00
ShellCommand.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
SimpleActionBlocker.h
SimpleIncrement.h
SipHash.h Fix build 2022-03-14 18:17:36 +00:00
SmallObjectPool.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
SpaceSaving.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
StackTrace.cpp Initial support for risc-v 2021-11-11 19:23:34 +01:00
StackTrace.h
StatusFile.cpp Move code around to avoid dlsym on Musl 2021-12-24 12:25:27 +03:00
StatusFile.h
StatusInfo.cpp
StatusInfo.h
Stopwatch.h
StringSearcher.h Replace a few uses of enable_if for SFINAE by concepts 2022-03-16 19:51:38 +01:00
StudentTTest.cpp
StudentTTest.h
SymbolIndex.cpp Update sort to pdqsort 2022-01-30 19:49:48 +00:00
SymbolIndex.h Fix parsing symbols from resources (for shared builds) 2021-12-29 09:56:59 +03:00
SystemLogBase.cpp Separate base parts out of SystemLog 2022-01-25 18:48:43 +08:00
SystemLogBase.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
TaskStatsInfoGetter.cpp
TaskStatsInfoGetter.h
TerminalSize.cpp
TerminalSize.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
thread_local_rng.cpp
thread_local_rng.h
ThreadFuzzer.cpp Update ThreadFuzzer.cpp 2022-03-11 17:58:27 +03:00
ThreadFuzzer.h
ThreadPool.cpp Update ThreadPool.cpp 2022-02-04 03:54:33 +03:00
ThreadPool.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
ThreadProfileEvents.cpp Fixed tests 2022-03-16 11:21:18 +00:00
ThreadProfileEvents.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
ThreadStatus.cpp Use explicit template instantiation for SystemLog 2022-01-10 22:01:41 +03:00
ThreadStatus.h Do not loose ProfileEvents in case of thread destroyed before 2021-12-19 23:43:05 +03:00
Throttler.cpp HashTable constant fix 2022-01-11 18:45:41 +03:00
Throttler.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
TimerDescriptor.cpp clang-tidy check performance-noexcept-move-constructor fix 2022-03-02 18:15:27 +00:00
TimerDescriptor.h clang-tidy check performance-noexcept-move-constructor fix 2022-03-02 18:15:27 +00:00
TLDListsHolder.cpp
TLDListsHolder.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
TraceSender.cpp Split TraceCollector between Common and Interpreters 2022-01-11 22:30:55 +03:00
TraceSender.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
typeid_cast.h Replace a few uses of enable_if for SFINAE by concepts 2022-03-16 19:51:38 +01:00
TypePromotion.h
UnicodeBar.cpp
UnicodeBar.h
UTF8Helpers.cpp
UTF8Helpers.h Replace a few uses of enable_if for SFINAE by concepts 2022-03-16 19:51:38 +01:00
VariableContext.h Remove redundant enumerator 2021-10-12 13:46:32 +03:00
VersionNumber.cpp
VersionNumber.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
Visitor.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
Volnitsky.h Fix clang-tidy warnings in Common folder 2022-03-14 18:17:35 +00:00
WeakHash.cpp
WeakHash.h