FreeBSD/aarch64 support

25 views
Skip to first unread message

Ronald Klop

unread,
Jul 21, 2018, 8:10:54 AM7/21/18
to mongodb-dev
Hello,

In https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229602 we added support for aarch64 on FreeBSD to mongodb 3.4.
Is this wanted upstream? And do you think this will easily apply to the trunk/HEAD branch?

Regards,
Ronald.

Andrew Morrow

unread,
Jul 23, 2018, 10:56:34 AM7/23/18
to mongodb-dev

Hi Ronald -

Nice work, thanks for letting us know. A few comments:

- The Intel library changes look reasonable.
- The change to exclude extract/js/src/jit/ProcessExecutableMemory.cpp seems reasonable, but it looks like it has already been done on master.
- The addition of the MozJS freebsd/aarch64 files for that platform looks correct.
- The WT crc32 support changes look OK, except that I'd expect the hardware CRC32 support to actually work. In our CI and release environment, we build mongodb with CCFLAGS="-march=armv8-a+crc". I'm not sure if the FreeBSD/aarch64 port is allowed to assume the presence of the CRC functional units. But if so, you can probably add that (or the clang analogue?) to your port options and drop this change.

In terms of getting things merged, I think the Intel library changes could likely be merged to HEAD. I think the MozJS SConscript change will prove unneeded on HEAD. We probably would not merge the addition of the FreeBSD/aarch64 generated mozjs sources, because we lack a CI environment in which to ensure they continue to work. The WT changes I think require some more information before we can make a decision: please also see https://jira.mongodb.org/browse/SERVER-30893. It is possible we should be doing a better job here of detecting whether the hardware CRC32 support is actually available, rather than assuming it, and that could certainly be landed on master.

Most likely we wouldn't backport those changes to the v3.4 though branch, so I think you will need to hold on to changes on your side either way.

Do you also have patches for MongoDB v3.6 and v4.0?

Thanks,
Andrew




--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev...@googlegroups.com.
To post to this group, send email to mongo...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-dev/82862ec6-e2dd-421c-8739-d180d6e532b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ronald Klop

unread,
Jan 24, 2019, 9:04:20 AM1/24/19
to mongo...@googlegroups.com
Hello Andrew (and group),

Past weeks I found some time to port MongoDB 3.6 with similar patches as my previous 3.4 patches.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235057

The WT crc32 changes were not necessary anymore. (I don't know why.)

Regards,
Ronald.
Reply all
Reply to author
Forward
0 new messages