[PATCH] Display progress during getmemsize() so the kernel doesn't look like it hanged
Allan Jude
allanjude at freebsd.org
Thu Jan 15 06:59:47 UTC 2015
On 2015-01-15 01:54, Pokala, Ravi wrote:
> -----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
>
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>
Glad to see this, thanks for doing the work Ravi.
Also, I agree with jhb@, we should disable the test by default in
stable/10 (i think it is off by default only for VMs currently).
--
Allan Jude
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20150115/ef5f7c39/attachment.sig>
More information about the freebsd-hackers
mailing list