Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Lambda compatibility #9

Merged
merged 2 commits into from Apr 16, 2023
Merged

AWS Lambda compatibility #9

merged 2 commits into from Apr 16, 2023

Conversation

lmangani
Copy link
Contributor

@lmangani lmangani commented Apr 15, 2023

PR_SET_NAME workaround

AWS Lambdas (and other virtualized platforms) lack of support for PR_SET_NAME causing a blocking exception. Pending an upstream PR or fix in ClickHouse, this patch allows this function to fail unharmed. The resulting executable has been tested on various platforms without drawbacks and discussed in clickhouse issue #29378

$ sed -i '/Cannot set thread name/c\' /ClickHouse/src/Common/setThreadName.cpp

AVX2 Support

AWS Lambdas (and other virtualized platforms) lack of support for AVX2 instructions and currently preventing execution.
Instruction check fail. The CPU does not support AVX2 instruction set.
Disabling AVX2 results in broader compatibility for the library. AFAIK ClickHouse itself is compiled without AVX2 support.

STRIP debug symbols

The library is not currently stripped resulting in 100+ Mb of excess and making it hard to use and test in smaller setups. 99% of end users will not benefit from debug symbols. Please consider stripping the public library 馃檹

Changelog category (leave one):

  • Improvement

AWS Lambdas (and other virtualized platforms) lack of support for PR_SET_NAME causing a blocking exception. Pending an upstream PR or fix in ClickHouse, this patch allows this function to fail unharmed. The resulting executable has been tested on various platforms without drawbacks and discussed in clickhouse issue [29378](ClickHouse/ClickHouse#29378) 

$ sed -i '/Cannot set thread name/c\' /ClickHouse/src/Common/setThreadName.cpp
@lmangani lmangani changed the title PR_SET_NAME workaround AWS Lambda compatibility Apr 15, 2023
@lmangani lmangani mentioned this pull request Apr 15, 2023
@auxten auxten merged commit 0f9493d into chdb-io:pybind Apr 16, 2023
7 checks passed
auxten pushed a commit that referenced this pull request Jun 27, 2023
* PR_SET_NAME workaround

AWS Lambdas (and other virtualized platforms) lack of support for PR_SET_NAME causing a blocking exception. Pending an upstream PR or fix in ClickHouse, this patch allows this function to fail unharmed. The resulting executable has been tested on various platforms without drawbacks and discussed in clickhouse issue [29378](ClickHouse/ClickHouse#29378) 

$ sed -i '/Cannot set thread name/c\' /ClickHouse/src/Common/setThreadName.cpp

* Disable AVX2 support
auxten pushed a commit that referenced this pull request Jun 28, 2023
* PR_SET_NAME workaround

AWS Lambdas (and other virtualized platforms) lack of support for PR_SET_NAME causing a blocking exception. Pending an upstream PR or fix in ClickHouse, this patch allows this function to fail unharmed. The resulting executable has been tested on various platforms without drawbacks and discussed in clickhouse issue [29378](ClickHouse/ClickHouse#29378) 

$ sed -i '/Cannot set thread name/c\' /ClickHouse/src/Common/setThreadName.cpp

* Disable AVX2 support
auxten pushed a commit that referenced this pull request Aug 15, 2023
* PR_SET_NAME workaround

AWS Lambdas (and other virtualized platforms) lack of support for PR_SET_NAME causing a blocking exception. Pending an upstream PR or fix in ClickHouse, this patch allows this function to fail unharmed. The resulting executable has been tested on various platforms without drawbacks and discussed in clickhouse issue [29378](ClickHouse/ClickHouse#29378)

$ sed -i '/Cannot set thread name/c\' /ClickHouse/src/Common/setThreadName.cpp

* Disable AVX2 support
auxten pushed a commit that referenced this pull request Nov 9, 2023
* PR_SET_NAME workaround

AWS Lambdas (and other virtualized platforms) lack of support for PR_SET_NAME causing a blocking exception. Pending an upstream PR or fix in ClickHouse, this patch allows this function to fail unharmed. The resulting executable has been tested on various platforms without drawbacks and discussed in clickhouse issue [29378](ClickHouse/ClickHouse#29378)

$ sed -i '/Cannot set thread name/c\' /ClickHouse/src/Common/setThreadName.cpp

* Disable AVX2 support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants