[PATCH] Display progress during getmemsize() so the kernel doesn't look like it hanged
Pokala, Ravi
rpokala at panasas.com
Thu Jan 15 06:54:32 UTC 2015
-----Original Message-----
>Date: Tue, 13 Jan 2015 13:53:19 -0500
>From: John Baldwin <jhb at freebsd.org>
>To: Eric van Gyzen <eric at vangyzen.net>, Lars Engels
> <lars.engels at 0x20.net>, Allan Jude <allanjude at freebsd.org>
>Cc: freebsd-hackers at freebsd.org
>Subject: Re: [PATCH] Display progress during getmemsize() so the
> kernel doesn't look like it hanged
>Message-ID: <3221643.2Qu3vC2WD5 at ralph.baldwin.cx>
>Content-Type: text/plain; charset="us-ascii"
>
>On 1/13/15 10:48 AM, Eric van Gyzen wrote:
>> On 01/13/2015 04:11, Lars Engels wrote:
>>> On Mon, Jan 12, 2015 at 12:27:18AM -0500, Allan Jude wrote:
>>>> Is this feature still useful with memtest.tests=0?
>>> This feature is useful for everyone who has it set to 1, if they know
>>> about it or not. So it's a very useful feature.
>>
>> Agreed.
>>
>> Comments on the patch:
>>
>> The patch will divide by zero when PAGE_SIZE > 1 MiB. Maybe remove
>> PAGES_PER_MB, and just use PAGES_PER_GB. Make it const, too.
>>
>> The "total" line is mostly redundant with the later messages regarding
>> "real memory" and "avail memory". I suggest removing it.
>
>I agree with these. One other nit is that FreeBSD tends to use all caps
>for a macro rather than variables. Ravi, how about this variant, it
>also only displays the dots if the memory test is enabled. Also, I
>think the commit to disable the test should probably be merged to 10, yes.
We have a winner. I regenerated the patch against 10-STABLE and attached
it to the PR. Thanks all!
-Ravi
More information about the freebsd-hackers
mailing list