From owner-freebsd-java@freebsd.org Fri Jul 17 22:34:33 2020 Return-Path: Delivered-To: freebsd-java@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7E6AB370BC4 for ; Fri, 17 Jul 2020 22:34:33 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B7mBw4f8Xz4dnX for ; Fri, 17 Jul 2020 22:34:31 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by mail-ot1-x332.google.com with SMTP id 95so7983691otw.10 for ; Fri, 17 Jul 2020 15:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-org-nz.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Bn3HSzWnSDP5p0o9fPcZ1MUnyLs46D2sQ+UkjU9vieg=; b=AUzpG3lX2eKDTYOIBc+tyoIh+w4/yjVpH6fbHUlfmimyCJqwVcF5d9izerdm8x4WQ9 Yp8pU/XA9clPmyZC9IydX0xott6nZ/GQrNiNzbOospD+LfNcmZENm23cAC7wwztllXiV d1O8lxLad0LpjqYlF0tOm5GvYCGOo4d/md+ALBxkHKLVNCMV2Nt/nZCXB1Y8feKE/afA 1IreRmt6K6u9GmVxokQuHUSodYtB0tm8oRkXDb6skgGLMJZI6EWuTfVC81Pe/vBq5Nvm /gT08PESXWc9hgOudMBXRH+u3AekhpzlaVqMPEweLv+a1p5rZUunlW4/cgM/kZ7yw+Jf DxTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Bn3HSzWnSDP5p0o9fPcZ1MUnyLs46D2sQ+UkjU9vieg=; b=CalvbIIHjcZNfuVV6Kslb31YK4JMPIBntw8FgC6M2JfYLtxdMRxz1SLZafRn/SqsxC /T7SlEm+tn67meihexGL93zpGBpxgM2XOLKp7KErl7HWgp2jZizSWDWjHct7kvGgfoLg PwWXTo19DwgyvCcgt6S2jpdfcV7j0RhPmgu+uvXR3sKmNTbmvOKcc/HBnaVfPtkFG7Qh +oZJ6OKKp7UNRl9DHZNT+AfiMtbK9QLtEGhQDA2wmvM03ylU9dHWg6uyx+BcK2teQPaS 95UjQgFot7zwH4tyuHJrYhQZ59dXg51CTsaPm5RW25Mj8XLsrSLdWQiSnrZt+RmEM00v EaYA== X-Gm-Message-State: AOAM531CImXcJmyYxOVl+Jacgtxq5bVp0eFf4jx84Mq6BX46a58x67rR MO9n0G0lmZQYG4VkUW/ozwMK3MiQulpJaLPB2KQflbuNp8w= X-Google-Smtp-Source: ABdhPJxQvreM4aS0nSJQyY7wlryq2jfPj+nKdw28AJzFtQbjYSVnmTnAtjhcYZdRXnJYUi44t+cD8hdW7o+ISxzS4UU= X-Received: by 2002:a05:6830:1db5:: with SMTP id z21mr10937206oti.162.1595025265002; Fri, 17 Jul 2020 15:34:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Chen Date: Sat, 18 Jul 2020 10:34:09 +1200 Message-ID: Subject: Re: OT: support for multicore javac? To: Aryeh Friedman Cc: freebsd-java@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4B7mBw4f8Xz4dnX X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chen-org-nz.20150623.gappssmtp.com header.s=20150623 header.b=AUzpG3lX; dmarc=none; spf=softfail (mx1.freebsd.org: 2607:f8b0:4864:20::332 is neither permitted nor denied by domain of jonc@chen.org.nz) smtp.mailfrom=jonc@chen.org.nz X-Spamd-Result: default: False [-1.56 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.973]; R_DKIM_ALLOW(-0.20)[chen-org-nz.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.978]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-java@freebsd.org]; R_SPF_SOFTFAIL(0.00)[~all]; DMARC_NA(0.00)[chen.org.nz]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chen-org-nz.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::332:from]; NEURAL_HAM_SHORT(-0.31)[-0.307]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2020 22:34:33 -0000 On Fri, 17 Jul 2020 at 15:35, Aryeh Friedman wrote: > > I have a rather large code base that takes several minutes to compile even > when doing javac `find src -name '*.java'`. SInce I do not use ant or any > other Java based build system (I use devel/cook for many reasons most of > which fit the project much better then ant or the Java only build > systems). I was reading about a program called sjavac (smart-javac) as a > possible way to make javac splatter the compile across multiple cores. It > does not seem to be anywhere in the ports collection (independent or in > connection to another port). Any suggestions on how to get/install it > and/or other ways of making javac use multiple cores? I'm building eclipse, and invocations to javac seem to spread across multiple cores when building with multiple threads using openjdk11; at least that's what "top -H" tells me. I don't see what smart-javac brings to the table. Cheers. -- Jonathan Chen