Re: Terrible PA8800 SMP Performance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> flushing 32MB of cache on every fork and exec? :/

That's what I was thinking, although the actual situation may be worse.
It appears we may flush the entire cache (32MB I-cache and 32MB D-cache)
on every cpu.

static void cacheflush_h_tmp_function(void *dummy)
{
        flush_cache_all_local();
}

void flush_cache_all(void)
{
        on_each_cpu(cacheflush_h_tmp_function, NULL, 1, 1);
}

void flush_cache_mm(struct mm_struct *mm)
{
#ifdef CONFIG_SMP
        flush_cache_all();
#else
	flush_cache_all_local();
#endif
}

Dave
-- 
J. David Anglin                                  dave.anglin@xxxxxxxxxxxxxx
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
-
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux