Re: [osol-code] zdb -R with lzjb flag give error. Please help.

2008-11-21 Thread [EMAIL PROTECTED]
Darren J Moffat wrote: > [EMAIL PROTECTED] wrote: >> Hi Victor and Thai, >> >> Victor Latushkin wrote: >>> Thai Nguyen wrote: >>> >>>> Hi, >>>> I had an error when trying: zdb -R >>>> pool:vdev:location:psize:d,lzjb,

Re: [osol-code] zdb -R with lzjb flag give error. Please help.

2008-11-21 Thread [EMAIL PROTECTED]
Hi Victor and Thai, Victor Latushkin wrote: > Thai Nguyen wrote: > >> Hi, >> I had an error when trying: zdb -R pool:vdev:location:psize:d,lzjb,lsize. >> >> zdb -R rpool:0:1602b33000:200:d,lzjb,400 2> /tmp/metadnode >> >> the command return an error: ***Invalid flag arg 'd,lzjb' >> >> Can you p

Re: [osol-code] Question about file system direct entry

2008-10-27 Thread [EMAIL PROTECTED]
Hi Kevin, kevin wrote: > In /usr/include/sys/dirent.h I see this: > > /* > * File-system independent directory entry. > */ > typedef struct dirent { > ino_t d_ino; /* "inode number" of entry */ > off_t d_off; /* offset of

Re: [osol-code] Debugging Solaris on x86

2008-07-11 Thread [EMAIL PROTECTED]
Garrett D'Amore wrote: > Alexandra (Sasha) Fedorova wrote: > >> Hello, >> >> When I used to debug Solaris on SPARC, I'd send a "break" signal Ctrl-] to >> the console, the system would drop into "ok" prompt and I'd start mdb like >> this: "mdb -k". However, on x86 platform the break signal do

Re: [osol-code] mutex_lock_queue

2008-05-28 Thread [EMAIL PROTECTED]
> WebSphere MQ version 6.0.2.3 > Oracle 10.2.0.1.0 > > Attached to process 6834 with 9 LWPs > [EMAIL PROTECTED] ([EMAIL PROTECTED]) stopped in __lwp_park at 0xfd3c49a8 > 0xfd3c49a8: __lwp_park+0x0010: ta 8 > Current function is WrapperLiffeAccessLogon > 100 ReturnLiffeAPI =

Re: [osol-code] mutex_lock_queue

2008-05-28 Thread [EMAIL PROTECTED]
t why the problem is occuring and what could be a > probable resolution. > N.B. the application also makes use of > WebSphere MQ version 6.0.0.0 > Oracle 10.2.0.1.0 > > kind regards, > Nishant Arora > Tata Consultancy Services

Re: [osol-code] Dirty pages

2008-05-27 Thread [EMAIL PROTECTED]
Hi Neale, Neale Ferguson wrote: >> How quickly do you want an answer to this ? >> > Last week! ;-) > > It's not a write fault that's the problem here. It's when a read is done the > page is marked dirty and fsflush will attempt to write it back out. Actually > it's any read of the page (whe

Re: [osol-code] kernel memory range

2008-04-24 Thread [EMAIL PROTECTED]
rate, this will give you the number of VM (virtual memory) segments, including the kernel: # echo "::walk proc | ::print proc_t p_as | ::walk seg ! wc" | mdb -k max max > > > On Tue, Apr 22, 2008 at 8:23 PM, [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> <[E

Re: [osol-code] kernel memory range

2008-04-22 Thread [EMAIL PROTECTED]
Hi Pradeep, PRDEEP KUMAR wrote: > Hi All, > > How can I see the memory range used by kernel in solaris on X86 > system? > How can I see the VA->PA mappings? > > If you could give me the commands would be better,Otherwise also ok. # echo "p0::pmap" | mdb -k or # echo "kas::walk seg | :

Re: [osol-code] priocntl syscall help. :(

2007-11-28 Thread [EMAIL PROTECTED]
Hi Micke, micke wrote: > the program I want to run is: > > int main(void) { > rtparms_t *p; > long ret; > ret = priocntl(P_LWPID, 0, PC_SETXPARMS, "RT", RT_KY_PRI, 10); > printf("ret1: %d, errno %d\n", ret, errno); > ret = priocntl(P_PID, 0, PC_GETXPARMS, "RT", RT_KY_PRI, p); >

Re: [osol-code] priocntl syscall help. :(

2007-11-28 Thread [EMAIL PROTECTED]
Hi Micke, micke wrote: > Hi, Im having a little problem using the priocntl syscall, I want to use the > PC_SETXPARMS and PC_GETXPARMS as commands. > > > >From the man page of priocntl I get it as I should use is it like this: > > [b]priocntl(P_PID, 0, PC_SETXPARMS, "RT", RT_KY_PRI, 10);[/b] > > I

Re: [osol-code] howto, from another process, change a threads priority?

2007-11-10 Thread [EMAIL PROTECTED]
Hi Micke, micke wrote: > Hi, is this possible in Solaris? > > in user-space: > > process A is running, its job is to schedule threads. > > process B is also running, making a new thread t1, process B wants A to > schedule this thread t1. > > is this possible? that is, I need to get the thread id f

Re: [osol-code] Find out mutex owner

2007-10-31 Thread [EMAIL PROTECTED]
Hi Zhi, Zhi Huang wrote: > Hi all, > > I am working on a multi-thread application hang problem on Solaris. Stack > trace shows that a thread is trying to grep a mutex by calling: > > - lwp# 12 / thread# 11 > ff11f7f8 lwp_mutex_lock (fe7a73c8) > ff26ae80 _

Re: [osol-code] How to pick out thread id?

2007-10-31 Thread [EMAIL PROTECTED]
Hi Micke, micke wrote: > I've tryed: > > kthread_t *t; > pid_t tid; > > t = (kthread_t *)pthread_self(); > > tid = (pid_t)&t->t_tid; > > that works I think, the t_tid is the current threads id right? > > but the I want to change the scheduling class for this thread: > > sched_setscheduler(tid, SCHE

Re: [osol-code] [mdb-discuss] mdb bug ::context dumps core

2007-10-09 Thread [EMAIL PROTECTED]
John Levon wrote: > On Wed, Oct 03, 2007 at 03:21:03PM +0200, [EMAIL PROTECTED] wrote: > > >> OK. The rd_new() seems to be working now (with the original mdb_tgt_t >> arg). I get no complaints when I use addr::context. >> However, $c still does not work. Did it

Re: [osol-code] [mdb-discuss] mdb bug ::context dumps core

2007-10-03 Thread [EMAIL PROTECTED]
Ok. So I'm answering myself for some of this... [EMAIL PROTECTED] wrote: > Eric Schrock wrote: > >> The power of debugging, in general, is lost on most developers. Thanks >> to the work we've done in OpenSolaris (DTrace, MDB, CTF, ptools, etc), >> the avera

Re: [osol-code] mdb bug ::context dumps core (was: [mdb-discuss] using kernel CTF with raw disk)

2007-10-03 Thread [EMAIL PROTECTED]
Eric Schrock wrote: > > The power of debugging, in general, is lost on most developers. Thanks > to the work we've done in OpenSolaris (DTrace, MDB, CTF, ptools, etc), > the average OpenSolaris developer is vastly more engaged than your > typical developer. But as we've time and time again, you n

Re: [osol-code] "main" scheduling function, real-time, FIFO and RR

2007-09-27 Thread [EMAIL PROTECTED]
John Zolnowsky x69422/408-404-5064 wrote: >> Date: Thu, 27 Sep 2007 07:13:42 -0700 (PDT) >> From: micke <[EMAIL PROTECTED]> >> >> "There are no separate dispatch queues for the different classes." >> >> well according to Solaris Internals, page 2

Re: [osol-code] "main" scheduling function, real-time, FIFO and RR

2007-09-26 Thread [EMAIL PROTECTED]
micke wrote: > Been looking throu the code for a while now but I can't seem to find where > the "main" function for scheduling is. I'm interested in where the SCHD_FIFO > and SCHED_RR in the real-time class are done. That is where is the time > quantum for RR set/checked? where are threads picke

Re: [osol-code] how to access Global structure?

2007-08-03 Thread [EMAIL PROTECTED]
Hi Aubrey, Aubrey Li wrote: > On 8/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> Hi Aubrey, >> Aubrey Li wrote: >> >> > Here, global_structure is defined in the kernel head file, and this > file depends on another bunch of head files, How

Re: [osol-code] how to access Global structure?

2007-08-02 Thread [EMAIL PROTECTED]
Hi Aubrey, Aubrey Li wrote: > On 8/2/07, Gavin Maltby <[EMAIL PROTECTED]> wrote: > >> On 08/02/07 14:18, Aubrey Li wrote: >> >>> Hi all, >>> >>> I can access a Global structure by mdb-> Global_struct=X, it prints >>> t

Re: [osol-code] Semaphore Posix, SystemV

2007-07-13 Thread [EMAIL PROTECTED]
Soeren wrote: > Hi max > > Thank's for your answer. > > >> Or did I misunderstand your question? >> > > Sorry, I think so. > > I've read Solaris10 supports POSIX and SystemV Semaphores, and I don't know > which Semaphore(s) is using by default. > Which command can display/report that? > >

Re: [osol-code] Semaphore Posix, SystemV

2007-07-13 Thread [EMAIL PROTECTED]
Hi Soeren, Soeren wrote: > Hi@ > How can I find out wich semaphores are used per default ? Is there an command > for diplaying that? > > best regards > Soeren > I assume you are talking about System V semaphores, based on the subject line. The ipcs(1) command will show you what semaphores

Re: [osol-code] timeout and mutexes

2007-05-29 Thread [EMAIL PROTECTED]
Paul Durrant wrote: On 29/05/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Paul Durrant wrote: > On 28/05/07, Garrett D'Amore <[EMAIL PROTECTED]> wrote: >> You should not attempt to acquire a lock which will be held by other >> functions calling cv_wait, or i

Re: [osol-code] timeout and mutexes

2007-05-29 Thread [EMAIL PROTECTED]
Paul Durrant wrote: On 28/05/07, Garrett D'Amore <[EMAIL PROTECTED]> wrote: You should not attempt to acquire a lock which will be held by other functions calling cv_wait, or its brethren. (There are ways to do that safely, but it requires a fair bit of effort to make sure you do

Re: [osol-code] Where will the function cmn_err put its information

2007-05-21 Thread [EMAIL PROTECTED]
Frank Hofmann wrote: On Mon, 21 May 2007, [EMAIL PROTECTED] wrote: Frank Hofmann wrote: On Mon, 21 May 2007, snow wrote: In Kernel module coding,we offten use cmn_err,but where can i find the info it put It goes to a kernel streams queue that syslogd(1M) reads out and, in normal system

Re: [osol-code] Where will the function cmn_err put its information

2007-05-21 Thread [EMAIL PROTECTED]
Frank Hofmann wrote: On Mon, 21 May 2007, snow wrote: In Kernel module coding,we offten use cmn_err,but where can i find the info it put It goes to a kernel streams queue that syslogd(1M) reads out and, in normal system operation, writes into /var/adm/messages. You can force a direct immedi

Re: [osol-code] Turning-off the "red-zone" pages for |mmap()| ...

2007-04-19 Thread [EMAIL PROTECTED]
Oops. I never noticed... max Frank Hofmann wrote: On Thu, 19 Apr 2007, [EMAIL PROTECTED] wrote: Hi, Why do you think mmap is creating red-zone pages? thanks, max Is that an ironic question and my mailer just swallowed a ;-) ? If not, see: http://src.opensolaris.org/source/search?defs

Re: [osol-code] Turning-off the "red-zone" pages for |mmap()| ...

2007-04-19 Thread [EMAIL PROTECTED]
Hi, Why do you think mmap is creating red-zone pages? thanks, max Roland Mainz wrote: Hi! Is there any way to turn-off the 8k "red-zone" pages created by |mmap()| before and after the actual mapping ? Bye, Roland ___ opensolaris-cod

Re: [osol-code] Re: measuring interrupt latency in OpenSolaris from a simulator

2007-04-12 Thread [EMAIL PROTECTED]
-code mailing list [EMAIL PROTECTED] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code ___ opensolaris-code mailing list [EMAIL PROTECTED] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Re: [osol-code] Re: fields in kernel structures: memory offset values

2007-04-12 Thread [EMAIL PROTECTED]
this question? Thanks, Thomas This message posted from opensolaris.org ___ opensolaris-code mailing list [EMAIL PROTECTED] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code ___ opensolaris

[osol-code] nxge

2007-02-26 Thread [EMAIL PROTECTED]
Hi, what is the ASIC used by SUN in 10GbE PCIe x8 new NIC? what is the "n" in the nxge stands for? Thanks Ozzy This message posted from opensolaris.org ___ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/ma