:wave: I'm running into issues trying to install t...
# community-help
f
👋 I'm running into issues trying to install the rpm binary on an Oracle aarch64 vm running Oracle Linux. Is that to be expected?
Copy code
Last metadata expiration check: 2:25:44 ago on Thu 02 Feb 2023 06:45:10 PM EST.
Error: 
 Problem: conflicting requests
  - package typesense-server-0.24.0-1.arm64 does not have a compatible architecture
  - nothing provides config(typesense-server) = 0.24.0-1 needed by typesense-server-0.24.0-1.arm64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
k
The ARM binary is built on a Graviton instance. I wonder if the instruction set is not fully compatible with the ARM processor you are using.
f
Any ideas on how to resolve?
k
Does the ARM binary (tar gz) work? If so it might be a RPM issue.
f
Copy code
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
terminate called without an active exception
Aborted (core dumped)
😞
k
Are you using huge pages?
f
This is what I get when I start it up -- I haven't added anything.
Copy code
[frank@vm ~]$ ./typesense-server --data-dir=$(pwd)/typesense-data --api-key=$TYPESENSE_API_KEY --enable-cors
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
terminate called without an active exception
Aborted (core dumped)
k
Ok can you post the exact ARM CPU this machine is using?
I think your Linux distros page size is not 4K which is what jemalloc expects.
f
https://www.oracle.com/cloud/compute/arm/ Ampere Altra A1 Compute OCPU: 4 Memory: 24GB (this is Oracle's always free tier -- I was hoping it would be a good fit for a local typesense server)
$ getconf PAGE_SIZE
65536
k
We use
jemalloc
and that only works well on
4096
page size. That's the default page size on most Linux distributions but I just realized that CentOS, RedHat, or Oracle Linux, set the default page size to 64k. Is it possible to change that to 4K (not sure if that's determined at kernel compile time)?
The longer term fix is to use a larger page size on the ARM build since Jemalloc supports a smaller run-time page size than the one used in compile time: https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/4800 Can you please create a Github issue so we can track this build improvement?