System freezes unexpectly

2010-08-29 Thread Davide Italiano
Hi. I'm running 8.1 on my Sony Vaio laptop, with dwm as window manager on lastest Xorg on ports. When I'm trying to run firefox3, the system freezes unexpectly. I know that freezes is a bit generic but I can't find a more specific term to describe the situation. Dmesg doesn't give useful infos. I

Re: System freezes unexpectly

2010-08-29 Thread Davide Italiano
On Sun, Aug 29, 2010 at 6:29 PM, Glen Barber glen.j.bar...@gmail.com wrote: On 8/29/10 10:18 AM, Davide Italiano wrote: Hi. I'm running 8.1 on my Sony Vaio laptop, with dwm as window manager on lastest Xorg on ports. When I'm trying to run firefox3, the system freezes unexpectly. I know

Re: System freezes unexpectly

2010-08-29 Thread Davide Italiano
On Sun, Aug 29, 2010 at 10:06 PM, Garrett Cooper gcoo...@freebsd.org wrote: On Sun, Aug 29, 2010 at 9:33 AM, Davide Italiano davide.itali...@gmail.com wrote: On Sun, Aug 29, 2010 at 6:29 PM, Glen Barber glen.j.bar...@gmail.com wrote: On 8/29/10 10:18 AM, Davide Italiano wrote: Hi. I'm

Re: System freezes unexpectly

2010-08-29 Thread Davide Italiano
Ok. How about this? Firefox items: 1. What version of Firefox are you using? Firefox 3.6.4. Lastest from ports, compiled now. 2. Are you using any Firefox plugins? Yes, Xmarks. 3. When you try to bring up Firefox, does it start to render the GTK window and then freeze, or does it

Re: System freezes unexpectly

2010-08-30 Thread Davide Italiano
removing ~/.mozilla works fine. I think that problem's related to add-on Xmarks I've been installer or to Restore session functionality ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe,

Re: System freezes unexpectly

2010-08-31 Thread Davide Italiano
On 31/08/10 07:53, John Baldwin wrote: On Monday, August 30, 2010 12:45:40 pm Garrett Cooper wrote: On Mon, Aug 30, 2010 at 9:24 AM, Davide Italiano davide.itali...@gmail.com wrote: removing ~/.mozilla works fine. I think that problem's related to add-on Xmarks I've been installer

UMA large allocations issues

2011-07-22 Thread Davide Italiano
(some kind of guidance) to continue this project. If someone is interested to help, it would be very appreciated. Best Davide Italiano ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe

Re: UMA large allocations issues

2011-07-24 Thread Davide Italiano
oh, sorry I noticed that there's a typo. In mtx_init(uma_mtx, Bitmap Lock, NULL, MTX_DEF); you should replace uma_mtx with bitmap_mtx. Davide ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To

UMA large allocations issues

2011-07-26 Thread Davide Italiano
It seems that today I've some good news. I've done some job. Before I tried stuffs userspace http://davit.altervista.org/malloc_new.c , then I improved my patch a bit http://davit.altervista.org/uma_large_allocations.patch ) So, the situation is follow. System starts (before it doesn't), but I've

Re: Memory allocation in kernel -- what to use in which situation? What is the best for page-sized allocations?

2011-10-02 Thread Davide Italiano
2011/10/2 Lev Serebryakov l...@freebsd.org: Hello, Freebsd-hackers.  Here are several memory-allocation mechanisms in the kernel. The two I'm aware of is MALLOC_DEFINE()/malloc()/free() and uma_* (zone(9)).  As far as I understand, malloc() is general-purpose, but it has fixed transaction

Re: Memory allocation in kernel -- what to use in which situation? What is the best for page-sized allocations?

2011-10-02 Thread Davide Italiano
2011/10/2 Lev Serebryakov l...@freebsd.org: Hello, Davide. You wrote 2 октября 2011 г., 16:57:48:   But what if I need to allocate a lot (say, 16K-32K) of page-sized blocks? Not in one chunk, for sure, but in lifetime of my kernel module. Which allocator should I use? It seems, the best one

Re: Memory allocation in kernel -- what to use in which situation? What is the best for page-sized allocations?

2011-10-02 Thread Davide Italiano
On Sun, Oct 2, 2011 at 4:37 PM, Lev Serebryakov l...@freebsd.org wrote: Hello, Davide. You wrote 2 октября 2011 г., 18:00:26:  BTW, I/O is often require big buffers, up to MAXPHYS (128KiB for  now), do you mean, that any allocation of such memory has  considerable performance penalties,

Re: how to debug RB_TREE for memory corruption?

2011-10-06 Thread Davide Italiano
Was the node you're removing actually part of the tree? I had a similar issue some time ago because I've tried insert two nodes w/ the same key and then remove then. In practice, the second INSERT operation failed (due to the definition of key in a BST), and so I was trying to remove a node that

Re: dup3 syscall - atomic set O_CLOEXEC with dup2

2012-01-12 Thread Davide Italiano
On Thu, Jan 12, 2012 at 6:01 AM, Eitan Adler li...@eitanadler.com wrote: This is an implementation of dup3 for FreeBSD: man page here (with a FreeBSD patch coming soon): https://www.kernel.org/doc/man-pages/online/pages/man2/dup.2.html Is this implementation correct? If so any objection to

Re: FreeBSD has serious problems with focus, longevity, and lifecycle

2012-01-25 Thread Davide Italiano
On Wed, Jan 25, 2012 at 9:58 AM, Arnaud Lacombe lacom...@gmail.com wrote: Hi, On Wed, Jan 25, 2012 at 2:28 AM, Mark Linimon lini...@lonesome.com wrote: I might just be also interested to review/comment code, discuss regressions, and architecture, for a change ;-) Unfortunately, such threads

Re: kqueue periodic timer confusion

2012-07-11 Thread Davide Italiano
On Wed, Jul 11, 2012 at 9:52 PM, Paul Albrecht albre...@glccom.com wrote: Hi, Sorry about this repost but I'm confused about the responses I received in my last post so I'm looking for some clarification. Specifically, I though I could use the kqueue timer as essentially a drop in

Re: kqueue periodic timer confusion

2012-07-12 Thread Davide Italiano
On Thu, Jul 12, 2012 at 4:26 PM, John Baldwin j...@freebsd.org wrote: On Thursday, July 12, 2012 9:57:16 am Ian Lepore wrote: On Thu, 2012-07-12 at 08:34 -0400, John Baldwin wrote: On Wednesday, July 11, 2012 5:00:47 pm Ian Lepore wrote: On Wed, 2012-07-11 at 14:52 -0500, Paul Albrecht

Re: kqueue periodic timer confusion

2012-07-13 Thread Davide Italiano
On Thu, Jul 12, 2012 at 5:25 PM, John Baldwin j...@freebsd.org wrote: On Thursday, July 12, 2012 11:08:47 am Davide Italiano wrote: On Thu, Jul 12, 2012 at 4:26 PM, John Baldwin j...@freebsd.org wrote: On Thursday, July 12, 2012 9:57:16 am Ian Lepore wrote: On Thu, 2012-07-12 at 08:34 -0400

Re: kqueue periodic timer confusion

2012-07-19 Thread Davide Italiano
On Thu, Jul 19, 2012 at 5:06 PM, Paul Albrecht albre...@glccom.com wrote: On Fri, 2012-07-13 at 07:22 -0500, Davide Italiano wrote: On Thu, Jul 12, 2012 at 5:25 PM, John Baldwin j...@freebsd.org wrote: On Thursday, July 12, 2012 11:08:47 am Davide Italiano wrote: On Thu, Jul 12, 2012 at 4:26

Re: On cooperative work [Was: Re: newbus' ivar's limitation..]

2012-08-02 Thread Davide Italiano
On Wed, Aug 1, 2012 at 7:05 PM, Arnaud Lacombe lacom...@gmail.com wrote: Hi, On Wed, Aug 1, 2012 at 12:40 PM, Attilio Rao atti...@freebsd.org wrote: On Wed, Aug 1, 2012 at 5:32 PM, Arnaud Lacombe lacom...@gmail.com wrote: Hi, On Tue, Jul 31, 2012 at 4:14 PM, Attilio Rao atti...@freebsd.org

Re: huge ktr buffer

2012-12-06 Thread Davide Italiano
On Thu, Dec 6, 2012 at 4:18 PM, Andriy Gapon a...@freebsd.org wrote: So I configured a kernel with the following option: options KTR_ENTRIES=(1024UL*1024) then booted the kernel and did $ sysctl debug.ktr.clear=1 and got an insta-reboot. No panic, nothing, just a reset. I suspect

Re: memory allocation in spinlock context

2013-03-01 Thread Davide Italiano
On Fri, Mar 1, 2013 at 2:50 PM, Andriy Gapon a...@freebsd.org wrote: I am trying to understand if it is possible to allow memory allocations (M_NOWAIT, of course) in a spinlock context. I do not see any obvious architectural obstacles. But the fact that all of the uma locks, system map

Re: Call fo comments - raising vfs.ufs.dirhash_reclaimage?

2013-10-07 Thread Davide Italiano
On Wed, Aug 28, 2013 at 3:56 PM, Ivan Voras ivo...@freebsd.org wrote: Hi, Prodded by davide@, I'd like to collect opinions about raising the vfs.ufs.dirhash_reclaimage sysctl from 5 to 60, committed at: http://svnweb.freebsd.org/changeset/base/254986 What it does: Used in lowmem handler

Re: Call fo comments - raising vfs.ufs.dirhash_reclaimage?

2013-10-07 Thread Davide Italiano
What would perhaps be better than a hardcoded reclaim age would be to use an LRU-type approach and perhaps set a target percent to reclaim. That is, suppose you were to reclaim the oldest 10% of hashes on each lowmem call (and make the '10%' the tunable value). Then you will always make some

Re: Call fo comments - raising vfs.ufs.dirhash_reclaimage?

2013-10-08 Thread Davide Italiano
On Tue, Oct 8, 2013 at 1:25 PM, Adrian Chadd adr...@freebsd.org wrote: Hi, Hi Adrian, Please try it out on a -10 VM with something RAM limited - say, 128mb w/ GENERIC. See how it behaves. I've successfully done buildworlds on 10-i386 with 128mb RAM. Let's try not to break that before

Re: Call fo comments - raising vfs.ufs.dirhash_reclaimage?

2013-10-08 Thread Davide Italiano
On Tue, Oct 8, 2013 at 1:32 PM, Davide Italiano dav...@freebsd.org wrote: On Tue, Oct 8, 2013 at 1:25 PM, Adrian Chadd adr...@freebsd.org wrote: Hi, Hi Adrian, Please try it out on a -10 VM with something RAM limited - say, 128mb w/ GENERIC. See how it behaves. I've successfully done

Re: Call fo comments - raising vfs.ufs.dirhash_reclaimage?

2013-10-08 Thread Davide Italiano
On Tue, Oct 8, 2013 at 3:38 PM, RW rwmailli...@googlemail.com wrote: On Tue, 8 Oct 2013 13:32:58 +0200 Davide Italiano wrote: On Tue, Oct 8, 2013 at 1:25 PM, Adrian Chadd adr...@freebsd.org wrote: Hi, Hi Adrian, Please try it out on a -10 VM with something RAM limited - say, 128mb