[Mono-dev] can mono run under AIX 4.3, 5.2
Dear lists, I hope my C# web application can run under AIX 6000. The OS versions of AIX6000 are 4.3, 5.2. Who know if there is mono binary release for aix? tks zhu __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] how to improve mono performance
(1) I feel a little disappointed at the comparsion results. I think we should not only prove we can do this but we can do even better. The performance fact is very essential for production applications. I hope the mono community can improve performance of mono largely. Then mono will be depoyed in many real apps. We have spent so much effort on it, we shouldn't let it be reference implementation just for lab. (2) when I use msft's csc to compile compare.cs, then I run under linux+mono. I just got 10% faster than that compiled by mono mcs. So maybe mono's jit is not so good as msft's. tks zhu --- Ben Maurer [EMAIL PROTECTED] wrote: On Wed, 2005-11-16 at 20:30 -0800, zhu shi song wrote: I've got one test example and tested it using linux mono and windows .NET on the same machine. The results showed that the performance of linux mono is much bad than windows .NET. Linux Mono: ArrayList strings test.3311 ms StringBuilder test.4008 ms Integer Floating ADD.15145 ms Exception test.621 ms Reflection and recursion...9421 ms Windows .Net: ArrayList strings test.1109 ms StringBuilder test.1437 ms Integer Floating ADD.2734 ms Exception test.4046 ms Reflection and recursion...5843 ms Machine configuration: RAM: 512M DDR CPU: Intel C4 2.0G OS: Windows 2003 Server .NET 1.1 Framework Fedora Core 4 with mono compiled from svn Now I try to port my aspx web application to linux mono from windows 2003 .net framework. But regarding of performance, I wonder whether it is deserved. Maybe I lack some tips to improve linux mono performance. If someone knows pls help me. Chances are, your web application does not add items to an array, create stringbuilders, add integers, throw exceptions and do reflection anything like the tests you have configured. I would suggest benchmarking a ported application rather than these micro measurements. If you want to do such measurements, I would recommend something more relevant to your application (database accesses? the asp.net pipeline?) That being said, some possible reasons for slowness: ArrayList/StringBuilder: Likely the GC. Floating Point: I think msft may be taking advantage of some special hardware stuff. I highly doubt this is relevant to your application. Exceptions: We super optimized this path :-) Reflection: Not sure, might be worth looking at -- Ben __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] monodevelop with debugger can't start
I'm sorry for lacking debugger. It's very important for developing apps. tks zhu --- Lluis Sanchez [EMAIL PROTECTED] wrote: The debugger is not currently supported in MD. El mié, 16-11-2005 a las 20:44 -0800, zhu shi song escribió: Dear lists, I got monodevelop from svn and compiled it with enable-debugger correctly. But when I run it, there are some errors: 2005-11-17 12:44:01,029 [-1208621376] ERROR MonoDevelop.Core.ILoggingService [(null)] - Add-in failed to load: SharpDevelop Core 2005-11-17 12:44:01,072 [-1208621376] ERROR MonoDevelop.Core.ILoggingService [(null)] - MonoDevelop.Core.AddIns.AddInLoadException: Missing id attribute in 0x00426 MonoDevelop.Core.AddIns.AddIn:Initialize (System.String fileName) in 0x00054 MonoDevelop.Core.AddIns.AddInTreeSingleton:InsertAddIn (System.String addInFile) 2005-11-17 12:44:01,446 [-1208621376] ERROR MonoDevelop.Core.ILoggingService [(null)] - Add-in failed to load: MonoDevelop NUnit 2005-11-17 12:44:01,447 [-1208621376] ERROR MonoDevelop.Core.ILoggingService [(null)] - MonoDevelop.Core.AddIns.AddInLoadException: Missing id attribute in 0x00426 MonoDevelop.Core.AddIns.AddIn:Initialize (System.String fileName) in 0x00054 MonoDevelop.Core.AddIns.AddInTreeSingleton:InsertAddIn (System.String addInFile) 2005-11-17 12:44:01,507 [-1208621376] ERROR MonoDevelop.Core.ILoggingService [(null)] - Add-in failed to load: New Editor 2005-11-17 12:44:01,508 [-1208621376] ERROR MonoDevelop.Core.ILoggingService [(null)] - MonoDevelop.Core.AddIns.AddInLoadException: Missing id attribute in 0x00426 MonoDevelop.Core.AddIns.AddIn:Initialize (System.String fileName) in 0x00054 MonoDevelop.Core.AddIns.AddInTreeSingleton:InsertAddIn (System.String addInFile) 2005-11-17 12:44:01,802 [-1208621376] ERROR MonoDevelop.Core.ILoggingService [(null)] - Add-in failed to load: Java Language Binding 2005-11-17 12:44:01,802 [-1208621376] ERROR MonoDevelop.Core.ILoggingService [(null)] - MonoDevelop.Core.AddIns.AddInLoadException: Missing id attribute in 0x00426 MonoDevelop.Core.AddIns.AddIn:Initialize (System.String fileName) in 0x00054 MonoDevelop.Core.AddIns.AddInTreeSingleton:InsertAddIn (System.String addInFile) --- The error msgbox show details: -- System.ArgumentException: The addin '' v is not installed. in 0x002f7 MonoDevelop.Core.AddIns.AddInService:ResolveLoadDependencies (System.Collections.ArrayList addins, System.Collections.Stack depCheck, System.String id, System.String version) in 0x0012d MonoDevelop.Core.AddIns.AddInService:ResolveLoadDependencies (System.Collections.ArrayList addins, System.Collections.Stack depCheck, System.String id, System.String version) in 0x000a5 MonoDevelop.Core.AddIns.AddInService:PreloadAddin (IProgressMonitor monitor, System.String id) in 0x002b4 MonoDevelop.Core.AddIns.AddInService:PreloadAddins (IProgressMonitor monitor, System.String[] requestedExtensionPoints) in 0x00680 MonoDevelop.Ide.Gui.IdeStartup:Run (System.String[] args) -- who know how to solve the problem? There is no debugger I even can't program. tks zhu __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
Re: [Mono-dev] how to improve mono performance
I very agree with you. The right direction to improve performance should be from : - class libraries - compiler outputs - JIT I don't think we put emphasis on apps. Because we have the same source, but the running results are so different using linux+mono and msft .net. I insist that performance is the key factor for key applications. For example, we now have one enterprise web query application. Every day between 8:30AM and 12:00AM, it serve about 2 requests. Now we use one P4 2.6G PC Server with 512M DDR running Windows 2003 Server, it works well. If we port it to Linux + Mono, we must upgrade the hardware to meet the same workload. tks zhu --- Atsushi Eno [EMAIL PROTECTED] wrote: zhu shi song wrote: (1) I feel a little disappointed at the comparsion results. I think we should not only prove we can do this but we can do even better. The performance fact is very essential for production applications. I hope the mono community can improve performance of mono largely. Then mono will be depoyed in many real apps. We have spent so much effort on it, we shouldn't let it be reference implementation just for lab. I agree that performance improvements are impressive, but against your expectation mono is already used in practice, including softwares and individual solutions: http://www.mono-project.com/Software http://www.osnews.com/story.php?news_id=10714 (2) when I use msft's csc to compile compare.cs, then I run under linux+mono. I just got 10% faster than that compiled by mono mcs. So maybe mono's jit is not so good as msft's. Wrong assumption. There are three factors in mono to affect on performance: - class libraries - compiler outputs - JIT The most effective optimizations could be done at class libraries (which could be usually done with a few lines of changes on a few critical paths), where many hot users among users turned into hackers and posting several patches here (and there). Actual analysis and thoughts on which affects on performance are welcome (like what Ben wrote). It would be awesome if you try mono --profile (or heap-buddy in our svn repository) to count individual performance, find out where the code is specially slow, and optimize the sources. Even a line of change could result in more than 200% performance boost in some code areas (I often got such hits in DOM/XSLT areas). Atsushi Eno tks zhu --- Ben Maurer [EMAIL PROTECTED] wrote: On Wed, 2005-11-16 at 20:30 -0800, zhu shi song wrote: I've got one test example and tested it using linux mono and windows .NET on the same machine. The results showed that the performance of linux mono is much bad than windows .NET. Linux Mono: ArrayList strings test.3311 ms StringBuilder test.4008 ms Integer Floating ADD.15145 ms Exception test.621 ms Reflection and recursion...9421 ms Windows .Net: ArrayList strings test.1109 ms StringBuilder test.1437 ms Integer Floating ADD.2734 ms Exception test.4046 ms Reflection and recursion...5843 ms Machine configuration: RAM: 512M DDR CPU: Intel C4 2.0G OS: Windows 2003 Server .NET 1.1 Framework Fedora Core 4 with mono compiled from svn Now I try to port my aspx web application to linux mono from windows 2003 .net framework. But regarding of performance, I wonder whether it is deserved. Maybe I lack some tips to improve linux mono performance. If someone knows pls help me. Chances are, your web application does not add items to an array, create stringbuilders, add integers, throw exceptions and do reflection anything like the tests you have configured. I would suggest benchmarking a ported application rather than these micro measurements. If you want to do such measurements, I would recommend something more relevant to your application (database accesses? the asp.net pipeline?) That being said, some possible reasons for slowness: ArrayList/StringBuilder: Likely the GC. Floating Point: I think msft may be taking advantage of some special hardware stuff. I highly doubt this is relevant to your application. Exceptions: We super optimized this path :-) Reflection: Not sure, might be worth looking at -- Ben __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list __ Start your day with Yahoo
Re: [Mono-dev] GBK support error
Dear Sir, (1) codepage = GB18030 String s = 12\u7f51\u9875; Encoding e = Encoding.GetEncoding(GB18030); byte[] bytebuf = e.GetBytes(s); for ( int i =0; i bytebuf.Length ; i++) Console.Write({0:X2},(byte)bytebuf[i]); The result is : 31328230833582359131 The correct should be: 3132CDF8D2B3 (2)codepage = GBK String s = 12\u7f51\u9875; Encoding e = Encoding.GetEncoding(GBK); byte[] bytebuf = e.GetBytes(s); for ( int i =0; i bytebuf.Length ; i++) Console.Write({0:X2},(byte)bytebuf[i]); The result is : 00310032CDF8D2B3 The correct should be: 3132CDF8D2B3 tks zhu --- Atsushi Eno [EMAIL PROTECTED] wrote: Hi, zhu shi song wrote: Dear lists, I need to convert string aÓÐÍø to byte array. Can you please give the same string using escaped (\u) representation? It looks broken on mail messages. Encoding e = Encoding.GetEncoding(GBK); byte[] bytebuf = e.GetBytes(1ÓÐÍø); Under Windows, I got 31D3D0CDF8. But under Mono, the result is 0031D3D0CDF8. Who can help me? It would be nice if you file a bug on our bugzilla: http://www.mono-project.com/Bugs Thanks, Atsushi Eno __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] mono string internal representation problem
Dear sir, I found that string internal representation in mono is different from in ms VS.Net. For example, In Mono: --- ldstr 12\u795D\u798F Mono uses ucs-2BE as default string internal representation In MS: --- ldstr 12\u5D79\u8F79 MS uses ucs-2LE as default string internal representation I think the problem can cause System.Text.Encoding doesn't work correctly. So How to handle the compatible problem? tks zhu __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list
[Mono-dev] how to improve mono performance
Dear lists, I've got one test example and tested it using linux mono and windows .NET on the same machine. The results showed that the performance of linux mono is much bad than windows .NET. Linux Mono: ArrayList strings test.3311 ms StringBuilder test.4008 ms Integer Floating ADD.15145 ms Exception test.621 ms Reflection and recursion...9421 ms Windows .Net: ArrayList strings test.1109 ms StringBuilder test.1437 ms Integer Floating ADD.2734 ms Exception test.4046 ms Reflection and recursion...5843 ms Machine configuration: RAM: 512M DDR CPU: Intel C4 2.0G OS: Windows 2003 Server .NET 1.1 Framework Fedora Core 4 with mono compiled from svn Now I try to port my aspx web application to linux mono from windows 2003 .net framework. But regarding of performance, I wonder whether it is deserved. Maybe I lack some tips to improve linux mono performance. If someone knows pls help me. tks zhu __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.comusing System; using System.Collections; namespace TestNamespace { public class TestClass { static long ticks = 0; public static void InitTicks() { TestClass.ticks = DateTime.Now.Ticks; } public static void ShowTime(string str) { long newTicks = DateTime.Now.Ticks; //milliseconds, not Microsoft :) double ms = (newTicks - TestClass.ticks) / TimeSpan.TicksPerMillisecond; Console.WriteLine({0}{1} ms, str.PadRight(35, '.'), ms); TestClass.ticks = DateTime.Now.Ticks; } public static void Test1() { ArrayList a = new ArrayList(); for(int i=0;i100;i++) { string str = i.ToString(); a.Add(str); } ShowTime(ArrayList strings test); System.Text.StringBuilder strBuilder = new System.Text.StringBuilder(); Random rnd = new Random(); foreach(object strObj in a) { strBuilder.Append(strObj as string); strBuilder.Append(rnd.Next().ToString()); } string s = strBuilder.ToString(); if(s == Dsadasdasdsa) { throw(new Exception(no way...)); } ShowTime(StringBuilder test); } public static void Test2() { int i = 0; double d = 0.0; for(i=0; i10; i++) { d += i; } double d2 = d/2; ShowTime(Integer Floating ADD); } public static void Test3() { int i = 0; int sum = 0; for(i=0;i10;i++) { try { if(i is int) { throw(new Exception(the i integer is an integer.. oh no...)); } } catch(Exception ex) { if(ex is NotImplementedException) { Console.Write(who's responsable for this ?); } } } int res = sum/2; if(res == -321) throw(new Exception(this is odd)); ShowTime(Exception test); } public static void Recursive(string str) { string name = System.Reflection.MethodBase.GetCurrentMethod().Name; if(str.Substring(0, name.Length) == name) { int i = Convert.ToInt32(str.Substring(name.Length)); if(i 1000) { // Console.Write(i.ToString()+\n); Recursive(name + (i+1).ToString()); } } } public static void Test4() { for(int i=0;i1000;i++) { Recursive(Recursive0); } ShowTime(Reflection and recursion); } public static void Main() { InitTicks();
[Mono-dev] monodevelop with debugger can't start
Dear lists, I got monodevelop from svn and compiled it with enable-debugger correctly. But when I run it, there are some errors: 2005-11-17 12:44:01,029 [-1208621376] ERROR MonoDevelop.Core.ILoggingService [(null)] - Add-in failed to load: SharpDevelop Core 2005-11-17 12:44:01,072 [-1208621376] ERROR MonoDevelop.Core.ILoggingService [(null)] - MonoDevelop.Core.AddIns.AddInLoadException: Missing id attribute in 0x00426 MonoDevelop.Core.AddIns.AddIn:Initialize (System.String fileName) in 0x00054 MonoDevelop.Core.AddIns.AddInTreeSingleton:InsertAddIn (System.String addInFile) 2005-11-17 12:44:01,446 [-1208621376] ERROR MonoDevelop.Core.ILoggingService [(null)] - Add-in failed to load: MonoDevelop NUnit 2005-11-17 12:44:01,447 [-1208621376] ERROR MonoDevelop.Core.ILoggingService [(null)] - MonoDevelop.Core.AddIns.AddInLoadException: Missing id attribute in 0x00426 MonoDevelop.Core.AddIns.AddIn:Initialize (System.String fileName) in 0x00054 MonoDevelop.Core.AddIns.AddInTreeSingleton:InsertAddIn (System.String addInFile) 2005-11-17 12:44:01,507 [-1208621376] ERROR MonoDevelop.Core.ILoggingService [(null)] - Add-in failed to load: New Editor 2005-11-17 12:44:01,508 [-1208621376] ERROR MonoDevelop.Core.ILoggingService [(null)] - MonoDevelop.Core.AddIns.AddInLoadException: Missing id attribute in 0x00426 MonoDevelop.Core.AddIns.AddIn:Initialize (System.String fileName) in 0x00054 MonoDevelop.Core.AddIns.AddInTreeSingleton:InsertAddIn (System.String addInFile) 2005-11-17 12:44:01,802 [-1208621376] ERROR MonoDevelop.Core.ILoggingService [(null)] - Add-in failed to load: Java Language Binding 2005-11-17 12:44:01,802 [-1208621376] ERROR MonoDevelop.Core.ILoggingService [(null)] - MonoDevelop.Core.AddIns.AddInLoadException: Missing id attribute in 0x00426 MonoDevelop.Core.AddIns.AddIn:Initialize (System.String fileName) in 0x00054 MonoDevelop.Core.AddIns.AddInTreeSingleton:InsertAddIn (System.String addInFile) --- The error msgbox show details: -- System.ArgumentException: The addin '' v is not installed. in 0x002f7 MonoDevelop.Core.AddIns.AddInService:ResolveLoadDependencies (System.Collections.ArrayList addins, System.Collections.Stack depCheck, System.String id, System.String version) in 0x0012d MonoDevelop.Core.AddIns.AddInService:ResolveLoadDependencies (System.Collections.ArrayList addins, System.Collections.Stack depCheck, System.String id, System.String version) in 0x000a5 MonoDevelop.Core.AddIns.AddInService:PreloadAddin (IProgressMonitor monitor, System.String id) in 0x002b4 MonoDevelop.Core.AddIns.AddInService:PreloadAddins (IProgressMonitor monitor, System.String[] requestedExtensionPoints) in 0x00680 MonoDevelop.Ide.Gui.IdeStartup:Run (System.String[] args) -- who know how to solve the problem? There is no debugger I even can't program. tks zhu __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs ___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list