Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2684B200B2D for ; Thu, 16 Jun 2016 23:46:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2527A1602C5; Thu, 16 Jun 2016 21:46:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 98101160A52 for ; Thu, 16 Jun 2016 23:46:06 +0200 (CEST) Received: (qmail 45782 invoked by uid 500); 16 Jun 2016 21:46:05 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 45421 invoked by uid 99); 16 Jun 2016 21:46:05 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2016 21:46:05 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 491CC2C1F62 for ; Thu, 16 Jun 2016 21:46:05 +0000 (UTC) Date: Thu, 16 Jun 2016 21:46:05 +0000 (UTC) From: "Rei Odaira (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-11576) Add support for JNA mlockall(2) on POWER MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 16 Jun 2016 21:46:07 -0000 [ https://issues.apache.org/jira/browse/CASSANDRA-11576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15334746#comment-15334746 ] Rei Odaira commented on CASSANDRA-11576: ---------------------------------------- I have updated the patch. > Add support for JNA mlockall(2) on POWER > ---------------------------------------- > > Key: CASSANDRA-11576 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11576 > Project: Cassandra > Issue Type: Improvement > Components: Core > Environment: POWER architecture > Reporter: Rei Odaira > Assignee: Rei Odaira > Priority: Minor > Fix For: 2.1.x, 2.2.x, 3.0.x, 3.x > > Attachments: 11576-2.1.txt > > > org.apache.cassandra.utils.CLibrary contains hard-coded C-macro values to be passed to system calls through JNA. These values are system-dependent, and as far as I investigated, Linux and AIX on the IBM POWER architecture define {{MCL_CURRENT}} and {{MCL_FUTURE}} (for mlockall(2)) as different values than the current hard-coded values. As a result, mlockall(2) fails on these platforms. > {code} > WARN 18:51:51 Unknown mlockall error 22 > {code} > I am going to provide a patch to support JNA mlockall(2) on POWER. -- This message was sent by Atlassian JIRA (v6.3.4#6332)