From owner-svn-src-all@freebsd.org Fri May 27 21:21:43 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D6F43B4C07F; Fri, 27 May 2016 21:21:43 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pa0-x242.google.com (mail-pa0-x242.google.com [IPv6:2607:f8b0:400e:c03::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A382B1FB0; Fri, 27 May 2016 21:21:43 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pa0-x242.google.com with SMTP id gp3so6971625pac.2; Fri, 27 May 2016 14:21:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=1/dX7Qq6smp8LWlXPUPYyStSAXbMnG7xp12eXBJD8Ak=; b=jutiEGamwynnKcxJTQzs7rYFyr3Zx9KZntr2OW8mxL3+X1hFpV1LCNbY9VPFGZQpzO jPc0SAcNiEbHKDl57Z8laZmluTw8T+Nnjk2UcqXaUloHXra4LMQoxinZti0lQxpjR7SP 2dnUrLEt0OS8Tcu9gdnZS1xab8i98tEVtPSxg58TzldGkAEg8gJVrbLCLuBIOGz+X3v0 2a/Q1W0CS4exxuJLOlS9VxRXarwaZ7RHtDBRl3kM4cTRJX9KhDXn8GF2OQv2Oiysw9Jl QjaFvL5zMa7+XKUqEixx7SGe760zEtU0DP0LrpSaqFvtAOz4PVAtCj2kpw6OtkyMo6Cl pNfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=1/dX7Qq6smp8LWlXPUPYyStSAXbMnG7xp12eXBJD8Ak=; b=ihBPlS3gFoumoujiw3NYgn6kuVgcaBhvs47GOf++0nwUEKiRmC/bGYWSj83O2f7rjU wybp8GXlGbr0U8egbGBaxvReXHx0Elnus2VuUGbuCobruSS5ygvjNnvG8IuX9rFAiW9h T+ZrxD7gOXN5aGWscn8PqvK/qX6uf/Xb2Psr6B9itVA7tsL5kTbSW4xLWIm5z8UPfE2R /7mdVB+ZkJj7VtskAyow5VpN3s4ssrYwzimCJy/D4uVZ+S2Mb6wZvaA/bfEEwMHvVOiC F35RENrnoNeVvd1V5Ib7u2J5Ow/7EF+2ExMfw7WE8vhv1yA+jJ5EGQnBUcJ6830vzRn3 Jm/A== X-Gm-Message-State: ALyK8tKXmubF8fdCsuwI80ynNddxrD3dKDwtmnmZP9e7Zxeb5d/WdIW1+BrdVWa9GqYJvQ== X-Received: by 10.66.150.232 with SMTP id ul8mr25167185pab.85.1464384103241; Fri, 27 May 2016 14:21:43 -0700 (PDT) Received: from pinklady.local (c-73-97-222-46.hsd1.wa.comcast.net. [73.97.222.46]) by smtp.gmail.com with ESMTPSA id w125sm15845690pfb.53.2016.05.27.14.21.42 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 May 2016 14:21:42 -0700 (PDT) Subject: Re: svn commit: r300865 - in head/sys: sys vm Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_C562183A-A796-44D5-B1DF-4BB4903668BA"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.6b2 From: "Ngie Cooper (yaneurabeya)" In-Reply-To: <016BEE0D-05B6-4042-8CD4-471D4D1C9162@gmail.com> Date: Fri, 27 May 2016 14:21:40 -0700 Cc: Ivan Klymenko , Alan Cox , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-Id: <3018B8E4-5E33-49EF-8154-D7D5ECEE8403@gmail.com> References: <201605271915.u4RJFkEl013139@repo.freebsd.org> <20160527225103.67ae3547@nonamehost.local> <20160527210148.GR38613@kib.kiev.ua> <016BEE0D-05B6-4042-8CD4-471D4D1C9162@gmail.com> To: Konstantin Belousov X-Mailer: Apple Mail (2.3124) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2016 21:21:43 -0000 --Apple-Mail=_C562183A-A796-44D5-B1DF-4BB4903668BA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On May 27, 2016, at 14:03, Ngie Cooper (yaneurabeya) = wrote: >=20 >>=20 >> On May 27, 2016, at 14:01, Konstantin Belousov = wrote: >>=20 >> On Fri, May 27, 2016 at 10:51:03PM +0300, Ivan Klymenko wrote: >>> On Fri, 27 May 2016 19:15:46 +0000 (UTC) >>> Alan Cox wrote: >>>=20 >>>> Author: alc >>>> Date: Fri May 27 19:15:45 2016 >>>> New Revision: 300865 >>>> URL: https://svnweb.freebsd.org/changeset/base/300865 >>>>=20 >>>> Log: >>>> The flag "vm_pages_needed" has long served two distinct purposes: >>>> (1) to indicate that threads are waiting for free pages to become >>>> available and (2) to indicate whether a wakeup call has been sent = to >>>> the page daemon. The trouble is that a single flag cannot really >>>> serve both purposes, because we have two distinct targets for when = to >>>> wakeup threads waiting for free pages versus when the page daemon = has >>>> completed its work. In particular, the flag will be cleared by >>>> vm_page_free() before the page daemon has met its target, and this >>>> can lead to the OOM killer being invoked prematurely. To address = this >>>> problem, a new flag "vm_pageout_wanted" is introduced. >>>> Discussed with: jeff >>>> Reviewed by: kib, markj >>>> Tested by: markj >>>> Sponsored by: EMC / Isilon Storage Division >>>>=20 >>>> Modified: >>>> head/sys/sys/vmmeter.h >>>> head/sys/vm/vm_page.c >>>> head/sys/vm/vm_pageout.c >>>> head/sys/vm/vm_pageout.h >>>>=20 >>>> Modified: head/sys/vm/vm_pageout.h >>>> = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >>>> --- head/sys/vm/vm_pageout.h Fri May 27 18:52:58 2016 >>>> (r300864) +++ head/sys/vm/vm_pageout.h Fri May 27 19:15:45 >>>> 2016 (r300865) @@ -72,9 +72,10 @@ >>>> */ >>>>=20 >>>> extern int vm_page_max_wired; >>>> -extern int vm_pages_needed; /* should be some "event" >>>> structure */ extern int vm_pageout_deficit; >>>> extern int vm_pageout_page_count; >>>> +extern bool vm_pageout_wanted; >>>> +extern bool vm_pages_needed; >>>>=20 >>>> /* >>>> * Swap out requests >>>> _______________________________________________ >>>> svn-src-all@freebsd.org mailing list >>>> https://lists.freebsd.org/mailman/listinfo/svn-src-all >>>> To unsubscribe, send any mail to = "svn-src-all-unsubscribe@freebsd.org" >>>=20 >>> ... >>> =3D=3D=3D> lib/libalias/modules/smedia (obj) >>> --- cddl/lib__L --- >>> In file included >>> from = /usr/src/cddl/lib/libzpool/../../../sys/cddl/contrib/opensolaris/uts/commo= n/fs/zfs/arc.c:143: = /media/da0s1/obj/usr/src/tmp/usr/include/vm/vm_pageout.h:77:8: >>> error: unknown type name 'bool' extern bool vm_pageout_wanted; >>> ^ >>> /media/da0s1/obj/usr/src/tmp/usr/include/vm/vm_pageout.h:78:8: = error: >>> unknown type name 'bool' extern bool vm_pages_needed; >>> ^ >>> 2 errors generated. >>> *** [arc.So] Error code 1 >>=20 >> Does it compile if you just remove the >> #include >> line from arc.c and possibly zfs_vnops.c ? >>=20 >> If not, try bracing the line with #ifdef _KERNEL, like this: >=20 > I added #include to zfs/arc.c in r300870 =E2=80=94 = it was missing from the file. Looking into drm2 and fed. Oy. Bad test before I did the fix. The issue was libzpool -_- (just saw = alc=E2=80=99s comment)=E2=80=A6 I=E2=80=99ll fix my commit.. --Apple-Mail=_C562183A-A796-44D5-B1DF-4BB4903668BA Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJXSLplAAoJEPWDqSZpMIYVVJkQAJODVaCh7Xygrmlw9SoG7Pr4 KNCxGdCkaHSJc6xbW1oERJpaWvvQkAdp3S6odCG04TQrAk3hLntIRsOnRqoJBlDs zCao0FyQi0BmlQyF81KVefEYg0Es2K04fok8ja3tbn7RmjvcLLfVyd795AZ1H+Ly Aw8/QnrHLB8bAhQuAKiwva0xzpC5dI5FXXNhNNn4iDvrQ8++rXwg4pq8+4cpPwJn IVL/dH2Dyhw6OJVyvVLX2pB/ZAsiq6NabnVAO9vlrjL4IiUerhPREdjl8mBb6z0N rHG7/bueJGQjUXILFBOluJCslC7OvmJqnwK+7zl9vqF9V/n78BTYt6gCckJvRKqy HoFbCNhUBqAixscW3m7QfwDRnycLo0xkZOM2Yq2jEyfkxeSnre45/R0KWjaqAHPh NegwyIrWdg9TCJfZ7S6ICLPRcCtLof9etf4t+hD204Q5Y8yFwUGiSHUIDYFinaOQ RdT8ncY4y4a5hiwAGSIrg1RqINptq6dYhrqtUbbBtk/BnC2+q5oyh9LpZuoMh4/A 5pIwAqS0cYCuvQqVmeTQpfgeDXMX0NyhzMibSucG4Wgea4zcCFhaOJx29btxxpf7 ZuiJugDmh9mSGo10S5KDxd+HLSeulNYpn+AcpvJ7r47I80I5NW9S52JM5xfu5nku 0ShFMVnEbT+8IF3H2qSO =UciR -----END PGP SIGNATURE----- --Apple-Mail=_C562183A-A796-44D5-B1DF-4BB4903668BA--