|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
Junior Member
Join Date: Oct 2006
Posts: 22
|
Is it better to cast from Windows or Linux based server
Hi all
i wanna to make my radio station and i wonder if is it better to cast using Windows or linux Based server? i googled for winamp run for linux and i find only one version which is 3.1 and no update for it also i googled for Shoutcast and i find version for it that run on linux but,will it ok to use linux or Windows based server? or will it ok to cast using windows or linux? i googled and find XMMS that can used instead of winamp butIs it good or bad? Plz tell me what is advantages and disadvantage so i can choose to by windows or linux server Reagrds, Xtreme |
![]() |
![]() |
![]() |
#2 |
Forum King
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
|
Better?? well thats all a matter of what you know and what you like.
Use winamp only on windows ![]() However for 24/7 streaming I use linux/UNIX so when a live DJ is not logged in and broadcasting the linux box streams using sc_trans. also the servers i run are linux based as well, why have all the bloated windows crap in the way.. If you are clueless about linux, don't waste your time you will only get frustrated. You can run XMS and stream from it to a shoutcast server, just have to read all the readme files, config files and google for help. so which is better for you? windows or linux ?? Cheers ~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough. ![]() search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn. |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Oct 2006
Posts: 22
|
1st thanks for your reply,
i have 2 options to choose from them. Windows or Linux what will be your choice?! btw, winamp can run on linux by using wine which make 32-bit platform that can run windows application on linux Box so u can run MS office too... Regards, Xtreme |
![]() |
![]() |
![]() |
#4 |
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
|
The server is such a low resource app that you could run it on the cheapest box you can find that runs either. A text editor like vi or Notepad use more resources than any DNAS ever will.
Don't let the word "server" fool you -- with respect to applications [software] it only means that it gives up [serves] information. Server, when used with respect to hardware, implies a parts list that screams reliability and capacity The DNAS does not need server hardware, or a server-like OS -- it can get everything it needs from the cheapest hardware out there -- all the things that file servers, database servers, and application servers like mail have in common is that they require a combination of many fast disks, a ton of RAM, and good power supplies so they don't die unexpectedly -- fortunately, the DNAS is simply a network relay that uses maybe 2Mbytes of RAM -- it does not need fast access to any disk files because what it "serves" is a single network connection from the source app -- bandwidth is what it needs, but bandwidth is external and independent of the DNAS app, the OS and the hardware that it's on. Windows is easier. I'd use which ever OS you are the most familiar with -- unless you are or want to become a UNIX guru, you'll never learn enough about linux server capabilities by simply running a DNAS. /* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
![]() |
![]() |
![]() |
#5 |
Moderator
Join Date: Feb 2005
Location: USA
Posts: 4,024
|
Excuse me for jumping in, but I have a question.
Two servers in the same data center. One runs Linux. One run Windows. Both run only SHOUTcast streams. Both have 1Gbps cards. Why would a Linux server's initial burst on connect be close to 2mbps, and a Windows box only 600kbps? I've seen this in several places now, and it's driving me nuts. I need Windows boxes, but they seem to be unable to deliver enough data on initial connect to let the player take off without briefly rebuffering one time during the initial handshake. Any clues? Is it a Windows network problem? A DNAS-for-Windows problem? |
![]() |
![]() |
![]() |
#6 | |
Junior Member
Join Date: Feb 2005
Posts: 18
|
Quote:
You can change this via the registy (and no I don't know if a reboot is always required) |
|
![]() |
![]() |
![]() |
#7 |
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
|
Maybe this is not a divergence, since were talking about comparisons between Linux and Win, and the subsequent differences between the two ports of the SHOUTcast DNAS server apps.
The TCP window size -- in this case the TCP send window may have an impact on that initial stream burst that a listener gets upon connecting, but it also may be by design in the DNAS application. dotme/karlH: I do a lot of fooling around with window sizes and scaling on Windows and have found that the scaling option works sometimes, but it often depends on wether the client also supports it -- with respect to the send window it can be configured on Windows [NT/2000/XP] boxes: HKLM\System\CurrentConrolSet\Services\AFD\ You should see the keys Enum and Security. If you add a new Key called Parameters, you will be able to add the following DWORD values under: HKLM\System\CurrentConrolSet\Services\AFD\Parameters\ DefaultReceiveWindow Value Type: REG_DWORD Default: 8192 Description: The number of receive bytes AFD will buffer on a connection before imposing flow control. For some applications, a larger value here will give slightly better performance at the expense of increased resource utilization. Note that applications can modify this value on a per-socket basis with the SO_RCVBUF socket option. DefaultSendWindow Value Type: REG_DWORD Default: 8192 Description: Similar to DefaultReceiveWindow, but for the send side of connections. Just like the well-known RWIN value found in HKLM\System\CurrentConrolSet\Services\TCPIP\Parameters\TCPWindowSize which only overrides the DefaultReceiveWindow set in the AFD key, the values you use should be a multiple of the interface MTU-40 [called MSS] - for Ethernet, 1x would be 1460. The maximum value is 65535, and the minimum is the MSS. For a server, you are interested in the send window, a client reports its receive window to the server -- in real time, both window sizes for a connection are negotiated such that client and server report their maximums and the lowest value will be used. A lot of things can influence how effective changing these values will be, since the application, the DNAS server software in our case, can also configure the window sizes internally, as can the client listen app. I don't know if it does or not. So dotme, if you're testing using the same client, try tweaking the send window on the Win box -- The box needs to be rebooted for the change to be realized but it will pay off if you can make a significant change. If you don't notice any change, it may just be a difference in the DNAS code logic from one OS port to the other. This setting is a global value, so it will impact (and can improve) HTTPd performance as well. I also created a list of many of the Windows TCP stack regkeys that I have found useful: http://cjw.servehttp.com:11423/TCPRegKeys.html It's actually excerpts from a very old doc, written when WinNT4 was the Cadillac in the WinOS stable, but it is still relevant and useful because WinXP and 2000 are still NT under the skin (that is, they share the exact same registry). /* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
![]() |
![]() |
![]() |
#8 |
Moderator
Join Date: Feb 2005
Location: USA
Posts: 4,024
|
Wow - thanks for the help! I don't know why I missed the replies, but I'll look at this on the weekend when I can take a box offline for a bit.
I ran tests Monday night at RTB after working to establish two servers in the same data center with the same relay source. I confirmed what I had suspected as far as a performance difference. Here are the results if you're interested. http://www.asfradio.com/tests.htm A picture says a thousand words. Both boxes deliver a pretty solid 192kbps after connect, but the burst on Windows is much lower. Low enough for a player to momentarily pause to rebuffer on an initial connect. I will post back after the weekend just to let you know if I made any progress with the registry tweaks. |
![]() |
![]() |
![]() |
#9 |
Junior Member
|
This is essential if you are running a server 24/7 on Windows: http://www.xpmaximized.com/archives/...rebooting.html
Otherwise it'll restart on you randomly (whenever it updates something "critical"), and you'll lose people and a spot until you go again. I don't know how many times that happened and got to hear from angry DJ's. |
![]() |
![]() |
![]() |
#10 | |
Senior Member
Join Date: Nov 2005
Posts: 100
|
Quote:
The reg. tweaks will not likely help. In fact they may harm other services. Windows Server 2003 TCP stack is fairly well optimized. The issue you are experiencing with Shoutcast, is a Win32 Shoutcast issue. It has nothing to do with Windows. The primary reason is that the Sleep Timer function is completely broken, and the default setting (1000mS) is too high to support high data rates. Play with the Sleep Timer in Linux, and see if you can recreate the issue. |
|
![]() |
![]() |
![]() |
#11 | |
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
|
FS-Randy: You're probably right about everything except:
Quote:
* Huge gains in Windows performance can be gained with just a little tweaking. /* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
|
![]() |
![]() |
![]() |
#12 | |
Senior Member
Join Date: Nov 2005
Posts: 100
|
Quote:
John seems to have found/tested some useful tweaks to improve shoutcast performance. Kudos! |
|
![]() |
![]() |
![]() |
#13 | |
Moderator
Join Date: Feb 2005
Location: USA
Posts: 4,024
|
Quote:
![]() By making modest changes to the Winsock Send Window and the TCP Windows, I seem to have achieved the boost on the "burst on connect" I was looking for. I have not seen any adverse effect on stability under load yet - but I'll be watching things closely this week to make sure the changes don't overtax the server resources when it's getting hammered. Scalability is important too...lol There's always that concern when you play with the defaults that something you tweak may have adverse consequences elsewhere. If things stay good for the next week or two, I'll consider it a success. |
|
![]() |
![]() |
![]() |
#14 |
Forum King
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
|
hmm.
The larger the windows size the more CPU is used to fragment the frames into standard Ethernet 1581 bytes, if you jack around with the MTU size your routers and switches will give you shit unless they support jumbo frame. I leave well enough alone ![]() ~ d ~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough. ![]() search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn. |
![]() |
![]() |
![]() |
#15 | |
Senior Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 160
|
Quote:
Last time I had somone who was a guru who made the registry change for me, but this time I will have to do it myself. I've checked the setting on the old (Win 2003) server and the registry entry says "Name: DefaultSendWindow Type:REG_DWORD Data: 0x0000ffff (65535) I have navigated to the same Reg location on my Win 2019 box and tried to replicate the data entry without success. It would be great if someone could talk me through the steps of setting the entry please. |
|
![]() |
![]() |
![]() |
#16 |
Senior Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 160
|
I managed to copy the entry from the old server to the new and it seems to have resolved the problem..
|
![]() |
![]() |
![]() |
#17 |
Major Dude
|
if those are the 2 choices some paid service is offering you, and your interaction with these paid services are all in the form of some custom control panel they provide, it probably won't make much difference which OS you choose.
i personally would never run anything on windows, but i probably have much higher standards and requirements than most in that dept. |
![]() |
![]() |
![]() |
#18 | |
Senior Member
Join Date: Apr 2004
Location: Isle of Man UK
Posts: 160
|
Quote:
I wanted to use the B/W which comes with the Windows server for streaming. My standards are pretty high too! |
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|