Page MenuHomeFreeBSD
Feed Advanced Search

Jul 4 2019

dougm retitled D20847: fix style(9) violations involving division by PAGE_SIZE from fix style(9) violations in swap_pager.c to fix style(9) violations involving division by PAGE_SIZE.
Jul 4 2019, 2:25 AM
dougm added a comment to D20635: release multiple swap blocks at a time in swp_pager_force_pagein.

This needs a final round of testing before calling for more reviewers.

Jul 4 2019, 2:18 AM
dougm added a comment to D20635: release multiple swap blocks at a time in swp_pager_force_pagein.

Apply reviewer suggestions.

Jul 4 2019, 2:15 AM

Jul 3 2019

dougm created D20847: fix style(9) violations involving division by PAGE_SIZE.
Jul 3 2019, 11:02 PM
dougm closed D20845: Remove a goto from vm_map_wire_locked.
Jul 3 2019, 10:42 PM
dougm committed rS349713: Eliminate a goto and a label in vm_map_wire_locked by inserting an 'else'..
Eliminate a goto and a label in vm_map_wire_locked by inserting an 'else'.
Jul 3 2019, 10:42 PM
dougm created D20846: boolean_t to bool in wire/unwire fucntions.
Jul 3 2019, 10:28 PM
dougm created D20845: Remove a goto from vm_map_wire_locked.
Jul 3 2019, 9:19 PM
dougm added a comment to D20635: release multiple swap blocks at a time in swp_pager_force_pagein.

Fix comment typo.

Jul 3 2019, 8:55 PM
dougm added a comment to D20635: release multiple swap blocks at a time in swp_pager_force_pagein.

Apply reviewer suggestions.

Jul 3 2019, 8:52 PM
dougm added a comment to D20635: release multiple swap blocks at a time in swp_pager_force_pagein.

After swp_pager_force_pagein, dont' rely on the local swap block value 'sb'. It may have been freed, so get a new one.

Jul 3 2019, 4:25 PM
dougm updated the summary of D20833: factor out common wiring code.
Jul 3 2019, 7:12 AM

Jul 2 2019

dougm added a comment to D20833: factor out common wiring code.

Combine the two last_timestamp updates into one.

Jul 2 2019, 4:10 PM
dougm added a comment to D20833: factor out common wiring code.

Add necesssary updates to 'last_timestamp' in vm_map_wire_locked().

Jul 2 2019, 4:06 PM
dougm added a comment to D20833: factor out common wiring code.

Correct handling of initial failures in map_wire_locked, map_unlock.

Jul 2 2019, 3:21 PM
dougm created D20833: factor out common wiring code.
Jul 2 2019, 7:17 AM

Jul 1 2019

dougm added a comment to D20635: release multiple swap blocks at a time in swp_pager_force_pagein.

Change assertion from '<' to '<='.

Jul 1 2019, 5:17 PM
dougm added a comment to D20635: release multiple swap blocks at a time in swp_pager_force_pagein.

Add more pip_wakeups.

Jul 1 2019, 4:01 PM
dougm added a comment to D20635: release multiple swap blocks at a time in swp_pager_force_pagein.

vm_object_pip_wakeup() is now called.

Jul 1 2019, 2:56 PM
dougm added a comment to D20635: release multiple swap blocks at a time in swp_pager_force_pagein.

Add vm_pager_page_unswapped() calls.

Jul 1 2019, 7:41 AM
dougm added inline comments to D20635: release multiple swap blocks at a time in swp_pager_force_pagein.
Jul 1 2019, 7:04 AM
dougm created D20814: Make entry simplification one-way.
Jul 1 2019, 4:10 AM

Jun 30 2019

dougm added a comment to D20635: release multiple swap blocks at a time in swp_pager_force_pagein.

I'm guessing, with low confidence, that reducing the max block count to nsw_cluster_max would help.

Jun 30 2019, 8:26 AM
dougm closed D20633: Does clip_start require entry simplification?.
Jun 30 2019, 2:08 AM
dougm committed rS349550: Remove a call to vm_map_simplify_entry from _vm_map_clip_start..
Remove a call to vm_map_simplify_entry from _vm_map_clip_start.
Jun 30 2019, 2:08 AM

Jun 29 2019

dougm added a comment to D20635: release multiple swap blocks at a time in swp_pager_force_pagein.

Reinsert missing line.

Jun 29 2019, 6:49 PM
dougm added a comment to D20635: release multiple swap blocks at a time in swp_pager_force_pagein.

Undo some changes that may not have been necessary and may have done harm.

Jun 29 2019, 5:27 PM
dougm added a comment to D20633: Does clip_start require entry simplification?.
In D20633#450353, @kib wrote:

vm_map_protect() is not the only user of the vm_map_clip_start(). More, I suspect that wire/unwire and vm_map_delete() might be more prominent users, because apps do not change protection often, while they definitely unmap enough. Did you evaluate these cases ?

Jun 29 2019, 4:44 PM
dougm updated the summary of D20635: release multiple swap blocks at a time in swp_pager_force_pagein.
Jun 29 2019, 2:42 AM
dougm updated the diff for D20633: Does clip_start require entry simplification?.
Jun 29 2019, 2:38 AM
dougm updated the summary of D20633: Does clip_start require entry simplification?.
Jun 29 2019, 2:38 AM

Jun 28 2019

dougm updated subscribers of D20635: release multiple swap blocks at a time in swp_pager_force_pagein.
Jun 28 2019, 7:43 AM
dougm updated the diff for D20635: release multiple swap blocks at a time in swp_pager_force_pagein.
Jun 28 2019, 7:43 AM
dougm added a comment to D20633: Does clip_start require entry simplification?.

Update after some changes that will reduce, if not eliminate, the need to simplify before clipping.

Jun 28 2019, 4:14 AM
dougm committed rS349498: If vm_map_protect fails with KERN_RESOURCE_SHORTAGE, be sure to.
If vm_map_protect fails with KERN_RESOURCE_SHORTAGE, be sure to
Jun 28 2019, 2:15 AM
dougm closed D20753: simplify entries after vm_map_protect -> KERN_RESOURCE_SHORTAGE.
Jun 28 2019, 2:15 AM

Jun 27 2019

dougm added a comment to D20753: simplify entries after vm_map_protect -> KERN_RESOURCE_SHORTAGE.

Accept reviewer suggestions.

Jun 27 2019, 10:52 PM
dougm added 1 blocking reviewer(s) for D20753: simplify entries after vm_map_protect -> KERN_RESOURCE_SHORTAGE: alc.
Jun 27 2019, 7:26 PM
dougm added a reviewer for D20625: clarify reserv_test_config: alc.
Jun 27 2019, 7:25 PM
dougm added inline comments to D20763: Add PG_CACHE_ALLOC..
Jun 27 2019, 2:59 PM
dougm added a comment to D20664: Changes to vm_map_lookup_entry.

This fixes everything I know of that was wrong before. It obviously deserves some robust testing.

Jun 27 2019, 4:08 AM

Jun 26 2019

dougm added a comment to D20664: Changes to vm_map_lookup_entry.

I do think I've identified and removed the broken parts. I haven't fixed them and reinstalled them yet.

Jun 26 2019, 8:31 AM
dougm added a comment to D20664: Changes to vm_map_lookup_entry.

Fix vm_stack_locked by not modifying it. If I ever do modify it again, I should notice that new_entry is not the same as prev_entry->next until after vm_map_insert is called, which is a pretty big thing to have overlooked.

Jun 26 2019, 5:37 AM
dougm added a comment to D20664: Changes to vm_map_lookup_entry.

It broke boot, so I've reverted it. Now, while I look for the problem, I'll accept your shaming.

Jun 26 2019, 3:17 AM
dougm committed rS349405: Revert r349393, which leads to an assertion failure on bootup, in….
Revert r349393, which leads to an assertion failure on bootup, in…
Jun 26 2019, 3:13 AM

Jun 25 2019

dougm added a comment to D20753: simplify entries after vm_map_protect -> KERN_RESOURCE_SHORTAGE.

Fine-tune a comment that still includes "now will do cow".

Jun 25 2019, 10:55 PM
D20753: simplify entries after vm_map_protect -> KERN_RESOURCE_SHORTAGE now requires review to proceed.

Discard the parts of a comment that may mislead.

Jun 25 2019, 8:34 PM
dougm committed rS349393: Eliminate some uses of the prev and next fields of vm_map_entry_t..
Eliminate some uses of the prev and next fields of vm_map_entry_t.
Jun 25 2019, 8:25 PM
dougm closed D20664: Changes to vm_map_lookup_entry.
Jun 25 2019, 8:25 PM
dougm added a comment to D20664: Changes to vm_map_lookup_entry.

Apply reviewer suggestions.

Jun 25 2019, 7:28 PM
dougm committed rS349379: Document the KERN_PROTECTION_FAILURE return value from vm_map_protect()..
Document the KERN_PROTECTION_FAILURE return value from vm_map_protect().
Jun 25 2019, 5:27 PM
Herald added a reviewer for D20751: vm_map_protect(9) fails to document KERN_RESOURCE_SHORTAGE return value.: manpages.
Jun 25 2019, 5:27 PM
D20753: simplify entries after vm_map_protect -> KERN_RESOURCE_SHORTAGE now requires review to proceed.

Be more articulate.

Jun 25 2019, 5:09 PM
dougm accepted D20758: Add a return value to vm_page_remove()..
Jun 25 2019, 5:03 PM
D20753: simplify entries after vm_map_protect -> KERN_RESOURCE_SHORTAGE now requires review to proceed.

Back-up one version.

Jun 25 2019, 5:02 PM
dougm added a comment to D20751: vm_map_protect(9) fails to document KERN_RESOURCE_SHORTAGE return value..

Articulate.

Jun 25 2019, 4:51 PM
D20751: vm_map_protect(9) fails to document KERN_RESOURCE_SHORTAGE return value. now requires review to proceed.

Accept reviewer suggestion.

Jun 25 2019, 4:47 PM
dougm added a comment to D20753: simplify entries after vm_map_protect -> KERN_RESOURCE_SHORTAGE.

Don't over-simplify.

Jun 25 2019, 4:45 PM
dougm added inline comments to D20753: simplify entries after vm_map_protect -> KERN_RESOURCE_SHORTAGE.
Jun 25 2019, 4:42 PM
dougm added inline comments to D20758: Add a return value to vm_page_remove()..
Jun 25 2019, 4:32 PM
dougm added a comment to D20753: simplify entries after vm_map_protect -> KERN_RESOURCE_SHORTAGE.

Accept reviewer advice.

Jun 25 2019, 3:51 PM
dougm updated the diff for D20751: vm_map_protect(9) fails to document KERN_RESOURCE_SHORTAGE return value..
Jun 25 2019, 3:40 PM
dougm added a comment to D20751: vm_map_protect(9) fails to document KERN_RESOURCE_SHORTAGE return value..

Accept Kostik's suggestion.

Jun 25 2019, 3:37 PM
dougm created D20753: simplify entries after vm_map_protect -> KERN_RESOURCE_SHORTAGE.
Jun 25 2019, 8:38 AM
dougm added a comment to D20664: Changes to vm_map_lookup_entry.

Resolve a conflict.

Jun 25 2019, 8:12 AM
dougm closed D20711: Stop early clipping in vm_map_protect.
Jun 25 2019, 7:45 AM
dougm committed rS349363: vm_map_protect may return an INVALID_ARGUMENT or PROTECTION_FAILURE.
vm_map_protect may return an INVALID_ARGUMENT or PROTECTION_FAILURE
Jun 25 2019, 7:44 AM
dougm added a comment to D20751: vm_map_protect(9) fails to document KERN_RESOURCE_SHORTAGE return value..

Take Alan's suggestion.

Jun 25 2019, 7:24 AM
dougm updated subscribers of D20751: vm_map_protect(9) fails to document KERN_RESOURCE_SHORTAGE return value..
Jun 25 2019, 6:47 AM
dougm created D20751: vm_map_protect(9) fails to document KERN_RESOURCE_SHORTAGE return value..
Jun 25 2019, 6:31 AM

Jun 24 2019

dougm added a comment to D20711: Stop early clipping in vm_map_protect.

Remove redundant test.

Jun 24 2019, 7:40 PM
dougm updated the summary of D20711: Stop early clipping in vm_map_protect.
Jun 24 2019, 7:46 AM
dougm added a comment to D20711: Stop early clipping in vm_map_protect.

Retreat. I know I can improve something, and I know that I'm misunderstanding something else. I'll try to take the small win for now.

Jun 24 2019, 5:29 AM
dougm added a comment to D20711: Stop early clipping in vm_map_protect.

Move the simplification of entries to a separate, third loop, not because I want to but because I want to see if simplification is what's making my accounting assertion fail, or if the cause is some other thing I don't understand.

Jun 24 2019, 4:33 AM
dougm added a comment to D20711: Stop early clipping in vm_map_protect.

Add an assertion that the amount of swap space to reserved has been calculated correctly.

Jun 24 2019, 2:35 AM

Jun 23 2019

dougm added a comment to D20711: Stop early clipping in vm_map_protect.

Remove a redundant condition, one which is tested for at the top of the loop.

Jun 23 2019, 11:17 PM
dougm added a comment to D20711: Stop early clipping in vm_map_protect.

If vm_map_entry_back is going to be invoked by clipping, then use the size of the untrimmed entry, which is what vm_map_entry_back will set as the size of the object that it creates. Otherwise, if there's no object, there won't be an object made and use the clipped map entry difference. Otherwise, use the size from the pre-existing object, the size of which won't be modified by vm_map_entry_charge_object, or by clip_start or clip_end.

Jun 23 2019, 11:14 PM
dougm added a comment to D20711: Stop early clipping in vm_map_protect.

Don't assume I can ignore ptoa(obj->size). Account for clipping when there's no object.

Jun 23 2019, 8:56 PM
dougm added inline comments to D20711: Stop early clipping in vm_map_protect.
Jun 23 2019, 8:38 PM
dougm added inline comments to D20711: Stop early clipping in vm_map_protect.
Jun 23 2019, 8:31 PM
dougm added inline comments to D20711: Stop early clipping in vm_map_protect.
Jun 23 2019, 7:51 PM
dougm added a comment to D20711: Stop early clipping in vm_map_protect.

Address easy suggestions from reviewer.

Jun 23 2019, 7:36 PM
dougm added a comment to D20711: Stop early clipping in vm_map_protect.

Don't account for clipping in computing the amount of swap space to reserve. Fix some style glitches.

Jun 23 2019, 8:32 AM

Jun 22 2019

dougm committed rS349293: You can't use block special nodes for swap, so don't let that happen..
You can't use block special nodes for swap, so don't let that happen.
Jun 22 2019, 7:27 PM
dougm closed D20723: Remove bad /useless S_ISBLK from swapon.
Jun 22 2019, 7:27 PM
D20723: Remove bad /useless S_ISBLK from swapon now requires review to proceed.

I understand that I violated a style(9) header rule too. Fix that.

Jun 22 2019, 5:37 PM
dougm created D20723: Remove bad /useless S_ISBLK from swapon.
Jun 22 2019, 5:16 PM
dougm added a comment to D20711: Stop early clipping in vm_map_protect.

Reorder events in the final loop now that the significance of 'cred' has been partially revealed to me.

Jun 22 2019, 7:56 AM
dougm added a comment to D20633: Does clip_start require entry simplification?.
In D20633#448011, @pho wrote:

I'm almost done with the amd64 tests and only found one instance of the printf:

20190621 13:21:33 all (235/646): mmap14.sh
_vm_map_clip_start: simplifying entry start 7fffdfdfe000 end 7fffdffde000 next_read 7fffdfdfd000 max_free 7ff7de9fc000 eflags 30000 object-type -1

Shall I move on to D20711?

Jun 22 2019, 6:18 AM
dougm added a comment to D20711: Stop early clipping in vm_map_protect.

Don't allocate swap space until the in-transition test is passed.

Jun 22 2019, 5:44 AM
dougm added a comment to D20711: Stop early clipping in vm_map_protect.

Relative to the previous version, combine the last two loops of vm_map_protect into one.

Jun 22 2019, 5:40 AM
dougm added a comment to D20711: Stop early clipping in vm_map_protect.

Reduce the swap_reserve calls to one, and not clip or modify map entry fields until it succeeds. This change makes an assumption about the need to check ptoa(obj->size) - that it isn't necessary when you the start and end of the map entry - that I'm believing because alc told me so.

Jun 22 2019, 4:42 AM
dougm retitled D20711: Stop early clipping in vm_map_protect from Stop early clipping in vm_map_reserve to Stop early clipping in vm_map_protect.
Jun 22 2019, 3:55 AM
dougm committed rS349286: Modify swapon(8) to invoke BIO_DELETE to trim swap devices, either if.
Modify swapon(8) to invoke BIO_DELETE to trim swap devices, either if
Jun 22 2019, 3:16 AM
Herald added a reviewer for D20599: simple trimming before swapon: manpages.
Jun 22 2019, 3:16 AM

Jun 21 2019

dougm added inline comments to D20664: Changes to vm_map_lookup_entry.
Jun 21 2019, 10:47 PM
dougm added a comment to D20664: Changes to vm_map_lookup_entry.

Apply most reviewer suggestions. Explain the one I didn't apply.

Jun 21 2019, 10:47 PM
dougm added a comment to D20579: Remove limit on blist_alloc maxsize, allow bigger getswapspace allocations.

By renaming, re-indenting, and updating stale comments, seek to answer questions and address reviewer concerns.

Jun 21 2019, 10:20 PM
dougm added a comment to D20599: simple trimming before swapon.

Add a header. Drop an extra argument to warn().

Jun 21 2019, 6:34 PM
dougm added inline comments to D20599: simple trimming before swapon.
Jun 21 2019, 3:37 AM