linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: pre2 swap_out() changes
@ 2001-01-11 20:52 Benjamin Redelings I
  0 siblings, 0 replies; 24+ messages in thread
From: Benjamin Redelings I @ 2001-01-11 20:52 UTC (permalink / raw)
  To: linux-mm

Does this make sensee,specially, the last two lines?
	Maybe 2.4.1-pre3 will shed some light, but I see that Marcelo basically
reverted this in his patch this morning...

-	onlist = PageActive(page);
 	/* Don't look at this pte if it's been accessed recently. */
 	if (ptep_test_and_clear_young(page_table)) {
-		age_page_up(page);
-		goto out_failed;
+		page->age += PAGE_AGE_ADV;
+		if (page->age > PAGE_AGE_MAX)
+			page->age = PAGE_AGE_MAX;
+		return;
 	}
-	if (!onlist)
-		/* The page is still mapped, so it can't be freeable... */
-		age_page_down_ageonly(page);
-
-	/*
-	 * If the page is in active use by us, or if the page
-	 * is in active use by others, don't unmap it or
-	 * (worse) start unneeded IO.
-	 */
-	if (page->age > 0)
-		goto out_failed;

-BenRI
-- 
q
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 24+ messages in thread
* pre2 swap_out() changes
@ 2001-01-11 10:38 Marcelo Tosatti
  2001-01-11 18:49 ` Linus Torvalds
  0 siblings, 1 reply; 24+ messages in thread
From: Marcelo Tosatti @ 2001-01-11 10:38 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-mm

Hi Linus,

While looking at pre2 VM changes, I've saw this thing:

static int swap_out(unsigned int priority, int gfp_mask)
{
        int counter;
        int retval = 0;
        struct mm_struct *mm = current->mm;

        /* Always start by trying to penalize the process that is 
	allocating memory */
        if (mm)
                retval = swap_out_mm(mm, swap_amount(mm));


Since no process calls swap_out() directly, I dont see any sense on the
comment above. 

Is this really bogus or you're planning something? 


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2001-01-18 11:54 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-11 20:52 pre2 swap_out() changes Benjamin Redelings I
  -- strict thread matches above, loose matches on Subject: below --
2001-01-11 10:38 Marcelo Tosatti
2001-01-11 18:49 ` Linus Torvalds
2001-01-12 11:35   ` Zlatko Calusic
2001-01-12 19:45     ` Linus Torvalds
2001-01-12 19:22       ` Marcelo Tosatti
2001-01-13  0:23         ` Linus Torvalds
2001-01-12 22:41           ` Marcelo Tosatti
2001-01-13  0:45             ` Linus Torvalds
2001-01-17  7:05             ` Rik van Riel
2001-01-18 11:54           ` Rik van Riel
2001-01-13 11:41         ` Zlatko Calusic
2001-01-17  7:08           ` Rik van Riel
2001-01-13 11:51       ` Zlatko Calusic
2001-01-14  2:39         ` Marcelo Tosatti
2001-01-14  4:36           ` Linus Torvalds
2001-01-14  3:50             ` Marcelo Tosatti
2001-01-14 15:51               ` Ed Tomlinson
2001-01-14 14:13                 ` Marcelo Tosatti
2001-01-14 16:15                   ` Zlatko Calusic
2001-01-14 17:22                     ` Zlatko Calusic
2001-01-17  7:16                       ` Rik van Riel
2001-01-17  7:15                 ` Rik van Riel
2001-01-17  7:12               ` Rik van Riel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox