Re: [osol-discuss] Identification macro for Open Solaris
Speaking of testing features rather than the OS/compiler/library, I have heard quite a lot about it but I am not sure I understand it. Here is an example where I want to write a function bind_thread() that can run on both Solaris and Linux: [code] #if defined (__sun) #include /* P_PID, processor_bind() */ #include /* getpid() */ #elif (defined (__gnu_linux__) || defined (__gnu__linux) || defined (__linux__)) #define _GNU_SOURCE #include /* CPU_SET, CPU_ZERO, cpu_set_t, sched_setaffinity() */ #endif #if defined (__sun) int bind_thread(unsigned int cpu_id) { int ret; ret = processor_bind(P_PID, getpid(), cpu_id, NULL); if (ret == -1) perror("bind_thread:processor_bind"); return ret; } #endif #if (defined (__gnu_linux__) || defined (__gnu__linux) || defined (__linux__)) int bind_thread(unsigned int cpu_id) { int ret = 0; cpu_set_t mask; unsigned int len = sizeof(mask); CPU_ZERO(&mask); CPU_SET(cpu_id, &mask); ret = sched_setaffinity(0, len, &mask); if (ret == -1) perror("bind_thread:sched_setaffinity"); return ret; } #endif [/code] Here, the prototype of processor_bind() is actually in which is #included in . Instead of testing the OS (Solaris vs Linux), can anyone tell me how to "test for individual feature" in this case? -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] Project proposal: Input Method Project
> Thank your for your comments and suggestions. I > personally agree with > you, that scim deserved to be bounded in the liveCD > :) > > I think one reason that Sun did not migrate to SCIM > completely, is that > scim is not that a perfect platform, though it's > popular (the author, > James Su, also admitted that). That's also a reason > why input method > communities try to come up with the next generation > IM platforms, like > imbus or ibus. And now, scim is in maintaining > status, and no more new > features or releases in near future. > > Regards, > Hi Yong, Thanks a whole lot for taking the initiative to port SCIM to Solaris and OpenSolaris. We "should" all benefit from it now that you have succeeded. However, whether or not we as the general public will actually benefit depends, to a large extent, on whether it will be implemented into the os0811 LiveCD. Someone else holds that power! :-) As we all know, nothing is perfect. Our number one priority, for now and for the near future, should be to pursue the most effective path that will attract the most users to the Solaris camp. SCIM at least offers the easiest transition, b/c, as I mentioned previously, this is what everyone else uses especially in the Linux world. IIIMF, OTOH, will simply scare every non-English speaker away. Even I, a self-proclaimed "board certified" hardcore OpenSolaris nut, cannot tolerate IIIMF. Every time I need to use Chinese, I boot into SuSE 11.0. Can someone please try to figure out how we are going to attract anyone who is even less motivated? -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] printing from firefox3 vs firefox2...
Bill Shannon wrote: > Norm Jacobs wrote: >> Other than the fact that firefox dumps core when you print, it seems >> to print. You may very well be running into >> >> 6743432 firefox is corrupting it's malloc buffers. >> >> which appears to be the cause of >> >> 6750542 memory corruption in firefox breaks printing >> >> It looks like LD_PRELOAD of libc.so before running firefox works >> around this. > > But, as I said on desktop-discuss... > > Now the only problem is that the printout is completely wrong! > It's using the wrong fonts with the wrong size and the wrong spacing! > Not just a little bit wrong, but *completely* wrong. The header and > footer titles are actually correct, but the font in the page is either > squished together so close that the characters overlap each other, or > it's half the size it should be and spaced twice as far apart as it > should be so that it takes up the same amount of horizontal space. > I hadn't seen the other thread here, which, now that I have read it, appears to already give the above advice. Once I got past the firefox memory management issues, I have been able to print from it, though I generated a pdf file from it earlier today and the bulk of the text from the web page was wrong. It seems that some pages generate correct output, while others do not. For example, www.sun.com is correct when printed, but www.opensolaris.org is not. -Norm ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] Project proposal: Input Method Project
Hi, Wayne, Thank your for your comments and suggestions. I personally agree with you, that scim deserved to be bounded in the liveCD :) I think one reason that Sun did not migrate to SCIM completely, is that scim is not that a perfect platform, though it's popular (the author, James Su, also admitted that). That's also a reason why input method communities try to come up with the next generation IM platforms, like imbus or ibus. And now, scim is in maintaining status, and no more new features or releases in near future. Regards, W. Wayne Liauh wrote: >> Yung Sun has ported SCIM: >> >> http://www.opensolaris.org/os/project/input-method/doc >> uments/building_scim/ >> >> and UIM: >> >> http://www.opensolaris.org/os/project/input-method/doc >> uments/building_uim/ >> > > > Sorry for revising a very old thread. But the IPS packages for SCIM are now > available for download. > > For something that is SO SIGNIFICANT, I am honestly quite a bit surprised > that there is no fanfare, no ticker tape, not even an official announcement. > :-) > > It has been a pain (actually a great pain) for me to use IIIMF (and an unfair > insult to many OpenSolaris developers who have nothing to do with input > methods). It may seem very noble for Sun to continue to support IIIMF while > everyone else has abandoned it. Even those previously gungho supporters such > as RedHat and Novell have completely washed their hands long time ago (at > least three to four years ago). IIRC the last IIIMF patch was submitted (by > none other than Sun) in 2005! Go figure. > > To be fair, Sun's IIIMF developers have made it less unstable and less > awkward to use this input tool. But that doesn't mean that it is not > unstable or not awkward to use. Actually I can't think of any reason other > than perhaps internal politics to continue to use this archaic and > fundamentally inadequate technology. > > At least for practical considerations, I strongly suggest that we replace > IIIMF with Yong Sun's SCIM packages in the next official release of > OpenSolaris LiveCD. To the best of my knowledge, all major Linux distros > have been using SCIM as the default IM (input method) for several releases > now. Switching to SCIM will definitely make it easier for non-English > speakers to switch from Linux to OpenSolaris. Even for English speakers, I > think it can be very annoying to see the IIIMF icon appearing then > disappeared in the right lower corner of the screen when we log into the > GNOME session. > > Probably because it was compiled with Sun Studio, the OpenSolaris version of > SCIM actually works more smoothly than in, say, SuSE 11.0. After I press the > triggering keys, I can immediately begin typing Chinese. It comes so > naturally, I don't feel that I am activating another program at all. This is > truly amazing. > > BTW, as Jim (Grisanzio) mentioned in his blog: > > http://blogs.sun.com/jimgris/entry/meeting_globally#comments > > Sun's Beijing team is ready to release a Chinese character recognition > application in the coming months for use in OpenSolaris. Because Chinese > characters are glyphs, a CR-based input method is much much more significant > than an English (or any other alphabet-based language) speaker can ever > appreciate. We all anxiously look forward to it. I also expect that > eventually this CR will be combined with some of the technologies developed > in SunPinYin and StarDict, and it will be truly awesome. > > Think about it, after only two-thirds of an official iteration (i.e., four > months out of a promised six month release cycle), OpenSolaris has turned > from something that many if not all would thumb their nose at (as far as > zh-localized version is concerned) to a legitimate contender as the most > promising operating system for the Middle Kingdom. Whatever Sun Beijing's > new boss is smoking, I most certainly would like try some. :-) > -- > This message posted from opensolaris.org > ___ > opensolaris-discuss mailing list > opensolaris-discuss@opensolaris.org > ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] How can I recompile a source file after i do some modification on it ?
Yesterday I read a document in sun.com..Maybe we needn't compile the whole kernel, even we needn't use any makefile.. For example: the source is fd.c you make your change on it, create a new file fd_new.c then: gcc -D_KERNEL -c fd_new.c ld -r -o fd_new fd_new.o it works.. -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] Project proposal: Input Method Project
> Yung Sun has ported SCIM: > > http://www.opensolaris.org/os/project/input-method/doc > uments/building_scim/ > > and UIM: > > http://www.opensolaris.org/os/project/input-method/doc > uments/building_uim/ Sorry for revising a very old thread. But the IPS packages for SCIM are now available for download. For something that is SO SIGNIFICANT, I am honestly quite a bit surprised that there is no fanfare, no ticker tape, not even an official announcement. :-) It has been a pain (actually a great pain) for me to use IIIMF (and an unfair insult to many OpenSolaris developers who have nothing to do with input methods). It may seem very noble for Sun to continue to support IIIMF while everyone else has abandoned it. Even those previously gungho supporters such as RedHat and Novell have completely washed their hands long time ago (at least three to four years ago). IIRC the last IIIMF patch was submitted (by none other than Sun) in 2005! Go figure. To be fair, Sun's IIIMF developers have made it less unstable and less awkward to use this input tool. But that doesn't mean that it is not unstable or not awkward to use. Actually I can't think of any reason other than perhaps internal politics to continue to use this archaic and fundamentally inadequate technology. At least for practical considerations, I strongly suggest that we replace IIIMF with Yong Sun's SCIM packages in the next official release of OpenSolaris LiveCD. To the best of my knowledge, all major Linux distros have been using SCIM as the default IM (input method) for several releases now. Switching to SCIM will definitely make it easier for non-English speakers to switch from Linux to OpenSolaris. Even for English speakers, I think it can be very annoying to see the IIIMF icon appearing then disappeared in the right lower corner of the screen when we log into the GNOME session. Probably because it was compiled with Sun Studio, the OpenSolaris version of SCIM actually works more smoothly than in, say, SuSE 11.0. After I press the triggering keys, I can immediately begin typing Chinese. It comes so naturally, I don't feel that I am activating another program at all. This is truly amazing. BTW, as Jim (Grisanzio) mentioned in his blog: http://blogs.sun.com/jimgris/entry/meeting_globally#comments Sun's Beijing team is ready to release a Chinese character recognition application in the coming months for use in OpenSolaris. Because Chinese characters are glyphs, a CR-based input method is much much more significant than an English (or any other alphabet-based language) speaker can ever appreciate. We all anxiously look forward to it. I also expect that eventually this CR will be combined with some of the technologies developed in SunPinYin and StarDict, and it will be truly awesome. Think about it, after only two-thirds of an official iteration (i.e., four months out of a promised six month release cycle), OpenSolaris has turned from something that many if not all would thumb their nose at (as far as zh-localized version is concerned) to a legitimate contender as the most promising operating system for the Middle Kingdom. Whatever Sun Beijing's new boss is smoking, I most certainly would like try some. :-) -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
[osol-discuss] GNOME 2.24.0 unleashed
Latest features of GNOME 2.24.0: http://library.gnome.org/misc/release-notes/2.24 "Powered by the GStreamer multimedia framework, GNOME 2.22 introduced digital television (DVB) capabilities into its Movie Player. Determined to make things even better, developers have worked to enhance this support by adding support for multiple DVB tuners (watch multiple channels at once) and better troubleshooting diagnostics. They have also worked to improve out-of-the-box (zero configuration) support for the majority of infrared remote controls (using the LIRC framework). This makes it even easier to chill out instead of writing that important report. Also featuring in GNOME 2.24, support for high-resolution YouTube videos and support for remote (non-local) text subtitling." Awesome... -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] Installation OpenSolaris and Windows vista
when you reburn your iso image, use a slower write speed. Older dvd players can have issues reading the faster recorded media since they were not rated for. -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] printing from firefox3 vs firefox2...
Norm Jacobs wrote: > Other than the fact that firefox dumps core when you print, it seems to > print. You may very well be running into > > 6743432 firefox is corrupting it's malloc buffers. > > which appears to be the cause of > > 6750542 memory corruption in firefox breaks printing > > It looks like LD_PRELOAD of libc.so before running firefox works around > this. But, as I said on desktop-discuss... Now the only problem is that the printout is completely wrong! It's using the wrong fonts with the wrong size and the wrong spacing! Not just a little bit wrong, but *completely* wrong. The header and footer titles are actually correct, but the font in the page is either squished together so close that the characters overlap each other, or it's half the size it should be and spaced twice as far apart as it should be so that it takes up the same amount of horizontal space. ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
[osol-discuss] Sun Microsystems CEO gets $11M pay package, a big boost from last year desp
http://biz.yahoo.com/ap/080924/sun_microsystems_executive_compensation.html?.v=4 If your company can afford this (share lost 75% of its value y-o-y [split-undo-corrected]) Don't forget to play nice music. -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] printing from firefox3 vs firefox2...
Other than the fact that firefox dumps core when you print, it seems to print. You may very well be running into 6743432 firefox is corrupting it's malloc buffers. which appears to be the cause of 6750542 memory corruption in firefox breaks printing It looks like LD_PRELOAD of libc.so before running firefox works around this. -Norm Stuart Mackie wrote: > Someone wrote: > > >> This concerns defects with Firefox3.0.1 running on Solaris 10. >> > > I installed OpenSolaris 2008.05, and bumped it to b98... but... > > ... I also could not print from Firefox. Argh! Show-stopper! > > I've just installed Solaris 10 u5 (due to the problems printing from > Firefox3) and have encountered similar problems with the "contrib" > build of Firefox 3.0.1 (on sol10 u5)... ie: can't print any web-pages. > > Workaround: printing from native Firefox 2.x on Solaris 10 u5 > works OK (tm) with the Blastwave/CSW cups package... > > I suggest: > > if not being able to print from Firefox3 (on Solaris 10 or OpenSolaris > b98) is a show-stopper for you (like me) - regress to Firefox v2.x on > Solaris 10 u5. > > Export bookmarks from FF3 in HTML, then import to FF2. BTW...! > > HTH, > > Stuart. > > ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
[osol-discuss] printing from firefox3 vs firefox2...
Someone wrote: > This concerns defects with Firefox3.0.1 running on Solaris 10. I installed OpenSolaris 2008.05, and bumped it to b98... but... ... I also could not print from Firefox. Argh! Show-stopper! I've just installed Solaris 10 u5 (due to the problems printing from Firefox3) and have encountered similar problems with the "contrib" build of Firefox 3.0.1 (on sol10 u5)... ie: can't print any web-pages. Workaround: printing from native Firefox 2.x on Solaris 10 u5 works OK (tm) with the Blastwave/CSW cups package... I suggest: if not being able to print from Firefox3 (on Solaris 10 or OpenSolaris b98) is a show-stopper for you (like me) - regress to Firefox v2.x on Solaris 10 u5. Export bookmarks from FF3 in HTML, then import to FF2. BTW...! HTH, Stuart. -- [EMAIL PROTECTED] -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] Installation OpenSolaris and Windows vista
On Wed, Sep 24, 2008 at 6:53 PM, Mark R. Bowyer <[EMAIL PROTECTED]> wrote: > Santiago Builes Palacio wrote: >> Hi, I tried to install OpenSolaris in a machine which has windows vista, >> but after about 65% of the installation that laptop restarts automatically >> without finishing the installation >> >> Any one knows the reason and how to repair it? Are you using the graphical installer? It might be worth using the motif installer, open a terminal and make a 'while true' loop that calls dmesg and 'sleep 1'. I had a similar problem and it constantly rebooted after an X percentage and I found out it was a kernel panic thrown due to my media being corrupted. -- Patrick ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] OpenSolaris on ARM
Hiya, On 24 Sep 2008, at 17:45, Tom Freund wrote: > I am new to Open Solaris and wanted to know if there any projects, > communities looking into porting Open Solaris into embedded > processors such as ARM. Well, there's certainly no reason why it couldn't be done; there's already Risc BSD for ARM, and ARM Linux. Also - and I suspect not many folk around here know this - but if my memory is correct, Acorn RISC iX (originally on ARM 2 and ARM 3 desktops) started from a suitably- licensed SunOS 4 codebase. Given the prevalence of ARM silicon these days, it's a good idea; some SCADA systems may benefit, as well as folk who wish to experiment with telephony etc. Cheers, -- Dave Walker (ex Acorn, the company from which ARM was spun out) Client Solutions, Sun Microsystems UK Tel: +44 780 3079264 http://blogs.sun.com/davew/ ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] Installation OpenSolaris and Windows vista
Santiago Builes Palacio wrote: > Hi, I tried to install OpenSolaris in a machine which has windows vista, > but after about 65% of the installation that laptop restarts automatically > without finishing the installation > > Any one knows the reason and how to repair it? > An educated guess would be the small kernel running the installer for OpenSolaris doesn't know how to keep you laptop cooling system working, and so it's going into thermal shutdown at that point. You're spinning the optical and disk drives and keeping the CPU fairly busy, so it gets hot... With my Ferrari 3400 I find it installs fine if I lift the side with the fan inlet underneath off the desk a bit by putting a pen underneath it. =O) I know, a very low-tech solution, but it works. Once Solaris is on, you can then look into which kernel driver you need to add to properly manage the laptop's cooling system. Good luck. Mark. ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
[osol-discuss] Installation OpenSolaris and Windows vista
Hi, I tried to install OpenSolaris in a machine which has windows vista, but after about 65% of the installation that laptop restarts automatically without finishing the installation Any one knows the reason and how to repair it? Regards -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
[osol-discuss] OpenSolaris on ARM
I am new to Open Solaris and wanted to know if there any projects, communities looking into porting Open Solaris into embedded processors such as ARM. -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] Belkin f5d6020 ver 2
Belkin f5d6020 Ver 2 could be quite different with Ver 3. It sounds like ATMEL chipset, no solaris driver for it by now, you need to find another WiFi adapter. See: http://opensolaris.org/os/community/laptop/wireless/wireless_driver_compatible_list/ - Michael Anthony 写道: > I installed OpenSolaris 2008.05 on a laptop. Most everything I need works out > of the box, however I'm trying to get this Belkin pcmcia wireless network > card to work, with no success. This is my first install of OpenSolaris, and > only been using Unix based kernels for a little less then a year. If you have > any help please but a specific as possible. > > Sep 24 10:04:17 opensolaris pcmcia: [ID 580848 kern.info] pcmem0 at [EMAIL > PROTECTED] in socket 0 > Sep 24 10:04:17 opensolaris genunix: [ID 408114 kern.info] /[EMAIL > PROTECTED],0/pci8086,[EMAIL PROTECTED]/pci1028,[EMAIL PROTECTED]/[EMAIL > PROTECTED] (pcmem0) online > > This is the card bus in my dmesg output however, I'm not sure how to > configure cards connected to the device. > > I tried reading the information on > http://opensolaris.org/os/community/laptop/wireless/, but if were to be > honest i didn't read through everything. I tried to configure rtw because it > said the supported cards included the f5d6020 ver 3 , and ndis because i had > the windows driver. When i followed the ndis the card wouldn't attach, the > final command i used was > > pfexec add_drv -i ´¨pci8086,[EMAIL PROTECTED] bcmndis > > with a few variations of the pci*** . > > Any help would be great, I'm enjoying OpenSolaris, and would love the have > this last component to work out. Thanks!! > -- > This message posted from opensolaris.org > ___ > opensolaris-discuss mailing list > opensolaris-discuss@opensolaris.org > ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] problem
ganga pradeep kumar writes: > How can I mount drives in solaris?Pls..send details& commands for mounting.If > possible send me commands for solaris OS The command is "mount". You can read more details by entering this command: man -s 1m mount If you need more detail than that, you'll need to explain exactly what drive you're mounting and on what kind of system, what commands you've tried, and what error(s) you've seen. We can't see your system from here. -- James Carlson, Solaris Networking <[EMAIL PROTECTED]> Sun Microsystems / 35 Network Drive71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677 ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] problem
what kind of drives? what filesystem? On Tue, Sep 23, 2008 at 2:55 PM, ganga pradeep kumar <[EMAIL PROTECTED]> wrote: > How can I mount drives in solaris? > > Pls..send details& commands for mounting. > > If possible send me commands for solaris OS > > > Check out the all-new face of Yahoo! India. Click here. > ___ > opensolaris-discuss mailing list > opensolaris-discuss@opensolaris.org > ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] irefox 3.0.1 contrib. builds for Solaris10 hungs when printing is attempted
Alfred Peng wrote: > Thommy M. Malmström wrote: >>> I would like to mention one problem though relating >>> to printing: >>> >>> as soon as I use P or use the menus to print a >>> web page, FF3.0.1 FREEZES UP completely. >>> >> >> This is the exact same behavior that I see on OpenSolaris 2008.11 b96 >> > Hi Thommy, > > Two bugs have been fixed in OpenSolaris lately: > b96 Crash when printing use firefox 3 in papiJobStreamOpen. > b97 cupsGetDests hang when cups service is not on. > > I'd suggest that you could wait to upgrade to b99(Firefox 3.0.1 in > b97/b98 has some bookmarks problem). If the bug still exists, there > could be another bug for printing. I upgraded to b98 yesterday but I haven't tested printing yet. My problems with the slow firefox/thunderbird seems to be an known Xorg problem for ATI on my Acer Ferrari 4005 with ATI Mobility x700 http://bugs.opensolaris.org/view_bug.do?bug_id=6718572 So I created a xorg.conf to put in /etc/X11 and suddenly firefox/thunderbird behaved normal, although the keyboard went incredibly slow. Had to remove the xorg.conf. I'm looking forward to b99 and to test printing. Cheers, /Thommy M. -- | Thommy M. Malmström | AB Hardeberga IT | Skiffervägen 23, 224 78 Lund | +46 70 969 57 93 === www.at-hardeberga.com [EMAIL PROTECTED] === ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
[osol-discuss] problem
How can I mount drives in solaris?Pls..send details& commands for mounting.If possible send me commands for solaris OS Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] Openoffice 3 and Staroffice 9, fonts do not work B98
Hi All, Found the latest rc2 version and did the update. Same issues Forced the removal of the beta 2 packeges. Maunual install of the RC2 packages, looks like everythimg works. Dave -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] Using Kstat framework
> Akhil Jain writes: >> As soon as i restart my process all variables get deleted and now i need >> the kernel stats from the time i started my process.But when using kstat >> it will give me the stats from the time kernel has rebooted.So that's >> why i was asking for such a mechanism to reset the kernel stats.So can >> we have any workaround for such a scenario? > > Read the kstat variables of interest as soon as your process starts, > and use that as the 'zero' reference point. Subtract to get the delta > since program start. > Also, you may find great value in using the Solaris hi-resolution timer. Please see http://www.blastwave.org/man/gethrtime_3C.html With special attention to the NOTE : NOTES Although the units of hi-res time are always the same (nanoseconds), the actual resolution is hardware dependent. Hi-res time is guaranteed to be monotonic (it won't go back- ward, it won't periodically wrap) and linear (it won't occa- sionally speed up or slow down for adjustment, like the time of day can), but not necessarily unique: two sufficiently proximate calls may return the same value. So that allows the user to fetch a very accurate and linear timestamp before doing anything and then using that as the base zero for other calculations. Using the wallclock time *may* not be ideal because, as the note suggests, it can slew faster or slower and things like ntpd can play a role there also. When in doubt use gethrtime and then the user has really nice dependable data. But good luck getting two calls within a nanosecond of each other ... I have tried that one ( just for fun ) and could never get below 25 nanosecs. I often wonder just how accurate and fine grained that hires timer is .. but that is another ( fun ) discussion. Dennis ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
[osol-discuss] Belkin f5d6020 ver 2
I installed OpenSolaris 2008.05 on a laptop. Most everything I need works out of the box, however I'm trying to get this Belkin pcmcia wireless network card to work, with no success. This is my first install of OpenSolaris, and only been using Unix based kernels for a little less then a year. If you have any help please but a specific as possible. Sep 24 10:04:17 opensolaris pcmcia: [ID 580848 kern.info] pcmem0 at [EMAIL PROTECTED] in socket 0 Sep 24 10:04:17 opensolaris genunix: [ID 408114 kern.info] /[EMAIL PROTECTED],0/pci8086,[EMAIL PROTECTED]/pci1028,[EMAIL PROTECTED]/[EMAIL PROTECTED] (pcmem0) online This is the card bus in my dmesg output however, I'm not sure how to configure cards connected to the device. I tried reading the information on http://opensolaris.org/os/community/laptop/wireless/, but if were to be honest i didn't read through everything. I tried to configure rtw because it said the supported cards included the f5d6020 ver 3 , and ndis because i had the windows driver. When i followed the ndis the card wouldn't attach, the final command i used was pfexec add_drv -i ´¨pci8086,[EMAIL PROTECTED] bcmndis with a few variations of the pci*** . Any help would be great, I'm enjoying OpenSolaris, and would love the have this last component to work out. Thanks!! -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] Using Kstat framework
Akhil Jain writes: > As soon as i restart my process all variables get deleted and now i need the > kernel stats from the time i started my process.But when using kstat it will > give me the stats from the time kernel has rebooted.So that's why i was > asking for such a mechanism to reset the kernel stats.So can we have any > workaround for such a scenario? Read the kstat variables of interest as soon as your process starts, and use that as the 'zero' reference point. Subtract to get the delta since program start. We don't provide a way to reset the kstat values for at least three reasons: 1. It would be destructive. Clearing out the kstats would affect *all* consumers, and not just the individual process or user currently reading them. 2. It would violate SNMP semantics. Counters are not permitted to roll backwards without an engine restart. 3. Using simple arithmetic to arrive at interval deltas is simpler and more effective anyway, so there's just no need. -- James Carlson, Solaris Networking <[EMAIL PROTECTED]> Sun Microsystems / 35 Network Drive71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677 ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] Using Kstat framework
Hi Milan, Thanks for the reply. > Do we have option to reset the kernel statistics in our program? --I don't think so. To get data for given period of time just subtract older value from newer value. >> As soon as i restart my process all variables get deleted and now i need the kernel stats from the time i started my process.But when using kstat it will give me the stats from the time kernel has rebooted.So that's why i was asking for such a mechanism to reset the kernel stats.So can we have any workaround for such a scenario? -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] Using Kstat framework
Hi Akhil. Akhil Jain wrote: > Hi All, > > I have some doubts in usage of kstat framework (kstat_open; kstat_lookup) > regarding SCTP statistics: > > Do we have option to reset the kernel statistics in our program? I don't think so. To get data for given period of time just subtract older value from newer value. > When I run the command "kstat sctp 10" on my Solaris system, it provides me > the statistics in every 10 seconds. So can I have the same option when using > the kstat framework in my implementation? If yes, can you please tell me the > workaround for that? That's a feature of the kstat tool, not the kstat framework. In your application, you need to query kstat framework in a loop. > Thanks, > Akhil Jain Regards, Milan Cermak -- * There is an ancient curse saying: 'Interesting times on you.' * ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] snv_98 iso
> I didn't think I need support for all languages. Was that my mistake? Not a mistake at all. You wrote: >> I downloaded the snv_98 iso, burned it to DVD (it wouldn't fit on a CD), and I merely showed that there does exist a CD-size image. -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
[osol-discuss] Using Kstat framework
Hi All, I have some doubts in usage of kstat framework (kstat_open; kstat_lookup) regarding SCTP statistics: Do we have option to reset the kernel statistics in our program? When I run the command "kstat sctp 10" on my Solaris system, it provides me the statistics in every 10 seconds. So can I have the same option when using the kstat framework in my implementation? If yes, can you please tell me the workaround for that? Thanks, Akhil Jain -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] snv_98 iso
Paul Gress <[EMAIL PROTECTED]> wrote: > One thing I've noticed on an old laptop I had is that it couldn't read > DVD +. I had to reburn it on a DVD -. Again, the very first DVD > readers did not read DVD + format, which is almost forgotten today. My experiences with DVD+RW read compatibility made 2-5 years ago are extremely bad. Using the same brand of writers usually does not give problems. DVD+ compatibility seems to be better now but still less optimal than DVD+. The DVD-Forum runs frequent readability tests with all known media, all known writers and all known readers. But this is done onle for the official DVD- formats. DVD+ is not a DVD-Forum format. If you have a drive that is very old (in special Toshiba notebooks drives) there is a high risk that DVD+ read support is not implemented at all. Additional DVD+ support for all drives started mainly because there have been shops that sold DVD- only writers but only DVD+ media was present in the same shop. Customers complained to the drive manufacturers... and as all DVD Chip designers did implement DVD+ support at that time because there was an ivitation to bid for a DVD+- writer from the Sony PC division before, DVD+ support was finally added to all drives. BTW: if you care about long term storage, look at Verbatim high quality media. Also note that TDK (A Pioneer owned company) should be able to make good media. My oldest DVD-R that I am still able to reead completely without problems was written by me (using cdrecord) in March 1998. It is a Pioneer medium sold for 70 Euro at that time. Jörg -- EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin [EMAIL PROTECTED](uni) [EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] irefox 3.0.1 contrib. builds for Solaris10 hungs when p
> > > Works fine for me when printing. Solaris 10 U5 using > blastwave cups to We're talking OpenSolaris here, which is not the same in all details as Solaris 10. > On another off topic note if you want to make your > FF3 look more like > the Windows or Mac versions the following theme works > well on Solaris Why on earth would anyone want to do that??? -- This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org
Re: [osol-discuss] irefox 3.0.1 contrib. builds for Solaris10 hungs when printing is attempted
Aaron Wilson wrote: > Works fine for me when printing. Solaris 10 U5 using blastwave cups to > manage print jobs. I don't think the latter really matters though > since FF 3.01 just uses lpr to print, though I am using the blastwave > version of lpr and lp too. Please bear in mind that Solaris 10 U5 is significant different from Nevada/OpenSolaris in the layer of libraries from gtk+ /printing. Though the external behavior may seem hanged, it could be a case that firefox is dumping core and the file size is big it might take quite a few seconds to complete. So check for core file in your home directory or whatever you set by coreadm. -Ghee > > On another off topic note if you want to make your FF3 look more like > the Windows or Mac versions the following theme works well on Solaris > 10 :-) > https://addons.mozilla.org/en-US/firefox/addon/8105 > > Aaron > > > > Bill Shannon wrote: >> Thommy M. Malmström wrote: >> I would like to mention one problem though relating to printing: as soon as I use P or use the menus to print a web page, FF3.0.1 FREEZES UP completely. >>> This is the exact same behavior that I see on OpenSolaris 2008.11 b96 >>> >> >> It doesn't hang for me, it sort of dies. All the windows disappear >> and when I get tired of waiting for it to completely die I kill it >> so I can restart it. >> >> ___ >> opensolaris-discuss mailing list >> opensolaris-discuss@opensolaris.org >> > > > ___ > opensolaris-discuss mailing list > opensolaris-discuss@opensolaris.org > ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org