From owner-freebsd-hackers@freebsd.org Sun Mar 20 10:17:48 2016 Return-Path: Delivered-To: freebsd-hackers@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 DD0B5AD610A for ; Sun, 20 Mar 2016 10:17:48 +0000 (UTC) (envelope-from tmacintyre@outlook.com) Received: from DUB004-OMC3S35.hotmail.com (dub004-omc3s35.hotmail.com [157.55.2.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6DF888BD for ; Sun, 20 Mar 2016 10:17:47 +0000 (UTC) (envelope-from tmacintyre@outlook.com) Received: from emea01-db3-obe.outbound.protection.outlook.com ([157.55.2.7]) by DUB004-OMC3S35.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sun, 20 Mar 2016 03:16:38 -0700 Received: from VI1PR05MB1343.eurprd05.prod.outlook.com (10.162.122.17) by VI1PR05MB1342.eurprd05.prod.outlook.com (10.162.122.16) with Microsoft SMTP Server (TLS) id 15.1.443.12; Sun, 20 Mar 2016 10:16:37 +0000 Received: from VI1PR05MB1343.eurprd05.prod.outlook.com ([10.162.122.17]) by VI1PR05MB1343.eurprd05.prod.outlook.com ([10.162.122.17]) with mapi id 15.01.0443.014; Sun, 20 Mar 2016 10:16:37 +0000 From: Timothy Macintyre To: "freebsd-hackers@freebsd.org" Subject: Fw: FreeBSD 9.0 16kb Page Size Thread-Topic: FreeBSD 9.0 16kb Page Size Thread-Index: AQHRgQZRiqBUlaTEwUqLSvGGVnwODJ9gs3YAgAAhI1eAAUxfhQ== Date: Sun, 20 Mar 2016 10:16:37 +0000 Message-ID: References: , <20160319132752.932a5a1e.freebsd@edvax.de>, In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=outlook.com; x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [cVDsWs+j58ost/mYh5fVvCajvun2lDWx] x-ms-office365-filtering-correlation-id: e4d49391-cf7e-4264-e94f-08d350a8b8c7 x-microsoft-exchange-diagnostics: 1; VI1PR05MB1342; 23:Ih6OSifplAMWe/qrA8PpRHickufmH8d8yixlwoRshevql4H2cli1UwzLtIG8PQNY0gGMsesEYibPQOo1Tnls6ubvY25SpL3OTvVQZjdEPEeA7cnfqH9kYO4ai2rsmNdFG32Kh/8ZWiPXlaKXfzpfY3Yql5vbpGepuGckSDhwwdUzN3nZha9L046v4kmmU4EG+A6p/V5kvQ+zmYCu3iPBEg==; 5:h/DWxElPPFbPIj1xNqeZgFLy6a84UEy2QmgvRkW9AEb0UFgirv3/t+cFSjObNfGeLpj+NfTgFT9PzOi9fi9aLWdtB3Ar+0Fhp8j5Pb66+bSIUa1tUAjPRyqyCo6sE6CgVucD932NsjPhJzGpsLIiqw==; 24:v749gDEaI2DpEcQGhBcAmd38AO10PW1UvtXAg86UwNryiu7V+/+C4eGyn+SkfAGv1qbdhOnhl7R/xsIFlDtowfKCLEcKRqfbJ//Hoi1ABGs= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR05MB1342; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015012)(82015046); SRVR:VI1PR05MB1342; BCL:0; PCL:0; RULEID:; SRVR:VI1PR05MB1342; x-forefront-prvs: 088751B4D4 x-forefront-antispam-report: SFV:NSPM; SFS:(7070004)(98900003); DIR:OUT; SFP:1901; SCL:1; SRVR:VI1PR05MB1342; H:VI1PR05MB1343.eurprd05.prod.outlook.com; FPR:; SPF:None; MLV:ovrnspm; LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Mar 2016 10:16:37.3427 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB1342 X-OriginalArrivalTime: 20 Mar 2016 10:16:38.0776 (UTC) FILETIME=[971FAF80:01D18291] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2016 10:17:49 -0000 Hi, I originally asked this on freebsd-questions (below) and was forwarded here= . I have tried updating the page size of the latest release (10) and the ke= rnel still crashes, I imagine I'm missing something like an invalid struct = size but not sure where. Any help would be greatly appreciated. Thanks. ________________________________________ From: Polytropon Sent: 19 March 2016 12:27 To: Timothy Macintyre Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 9.0 16kb Page Size On Fri, 18 Mar 2016 11:11:17 +0000, Timothy Macintyre wrote: > I'm trying to do some testing on FreeBSD 9.0 with the page size > set to 16kb on amd64 but I'm having trouble building a stable kernel. > > I've changed the PAGE_SHIFT to 14 under param.h and also updated > pmap.h/c with the following values so it doesn't complain about > invalid struct sizes at compile but I'm getting a crash after > install and reboot. Is there something I'm missing here? > > > #define _NPCM 12 > #define _NPCPV 677 You should probably repeat that experiment with a currently supported code base. FreeBSD 9.0 is already EOL. The best idea would be to use the FreeBSD 10.2 release (amd64) and make the required changes. In case you have a valid reason not to use FreeBSD 10, but instead need to keep FreeBSD 9, try the most current release, which is FreeBSD 9.3. Remember: it's a legacy release, not a production release. If you have done this and you're still experiencing problems, write to the freebsd-hackers@ mailing list, which is primarily intended for higher-level "Technical Discussions relating to FreeBSD", as freebsd-questions@ is mostly a users' question list (less technical, often focused on "easy" problems). Messing with the bowels of the kernel's memory management isn't a typical "user question". ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...