PtokaX forum

Development Section => LUA & PtokaX-Scripting-Interface => Topic started by: BoJlk on 07 November, 2004, 00:57:18

Title: ProtaX Performance (RAM usage)
Post by: BoJlk on 07 November, 2004, 00:57:18
Hi all,
I'm using ProtaX v0.3.3.0 Build 15.25 [debug]
And it's using alot of RAM!!!

Working Scripts:
BotMgr 1.01b.lua
ClonedAlert v1.0.lua
deflood v4.5.2.lua
fakeshare.lua
RoboCopv8.0b.lua
Time+.lua
TimeOut v0.5.lua
Trivia-Ex v0.645.lua
UserCleaner v2.lua
userinfo.lua
And Serving 185 users
-=-=-=-=-=-=-=-=-=-=-
(http://img.photobucket.com/albums/v509/BoJlk/Forum%20Use/ProtaXRAM.jpg)

(http://img.photobucket.com/albums/v509/BoJlk/Forum%20Use/ProtaXRAM22.jpg)
Title:
Post by: bastya_elvtars on 07 November, 2004, 03:35:30
if userinfo.lua is NightLitch1s one, it eats a goddamn amount of RAM.
Title:
Post by: Madman on 07 November, 2004, 03:42:46
What program do you use to show that all info BoJlk?
Title:
Post by: bastya_elvtars on 07 November, 2004, 04:00:40
QuoteOriginally posted by madman
What program do you use to show that all info BoJlk?

this is cause of userinfo. when i tried 2 make my own, i ran it.  it consumes a lot ram as it stores all users myinfos in a global table.
Title: RE:
Post by: BoJlk on 07 November, 2004, 15:32:46
Quotebastya_elvtars: "if userinfo.lua is NightLitch1s one"
[size=1]-- user info script by lallo82
-- functions by plop (great work) [/size]

Quotemadman "What program do you use to show that all info BoJlk?"

i Use the:
Download - Process Explorer (x86 - 230 KB) - For WinNT/2K/XP (http://www.sysinternals.com/files/procexpnt.zip)

Process Explorer by Sysinternals (http://www.sysinternals.com/ntw2k/freeware/procexp.shtml)
Title:
Post by: plop on 07 November, 2004, 16:18:57
QuoteOriginally posted by BoJlk
[size=1]-- user info script by lallo82
-- functions by plop (great work) [/size]
that script doesn't have a cleaner, so the db keeps growing and growing.
flush the db reguarly and it works fine, or use another script for it.

plop
Title:
Post by: Madman on 07 November, 2004, 16:38:27
QuoteOriginally posted by BoJlk
i Use the:
Download - Process Explorer (x86 - 230 KB) - For WinNT/2K/XP (http://www.sysinternals.com/files/procexpnt.zip)

Process Explorer by Sysinternals (http://www.sysinternals.com/ntw2k/freeware/procexp.shtml)

thanks =)
Title:
Post by: BoJlk on 07 November, 2004, 17:56:32
You welcomed madman, Have fun.
After you'll try the Program you won't forget it!  :D

And plop Can you add a cleaner to this script?
or at least direct me to another userinfo script.

*edit
Plop! how do i flush the DB  ?(
Title:
Post by: plop on 07 November, 2004, 22:28:22
QuoteOriginally posted by BoJlk *edit
Plop! how do i flush the DB  ?(
stop the script and delete all files in the userinfo folder.
i don't feel like adding a cleaner 2 this script because there are way better scripts @ the moment then this really old version of mine.
i do have a newer version inside ai tho, but it doesn't support as much clients as other scripts.
we just don't allow all those mods in our networks.
and beside this all those clients can show the standard dc++ tag.
so adding it 2 ai would only make it waste resources.

what other userinfo script you should use is more up 2 you 2 decide.
search the board a bit and try them all.

plop
Title:
Post by: BoJlk on 07 November, 2004, 22:49:41
well, i've removed the userinfo.lua
but still ProtaX climbing up on the RAM usage...
thou alot smaller (Currently: 25MB).
What amount of RAM should the ProtaX have for 185 Users and 8 Scripts?
Title:
Post by: bastya_elvtars on 07 November, 2004, 23:40:29
QuoteOriginally posted by BoJlk
well, i've removed the userinfo.lua
but still ProtaX climbing up on the RAM usage...
thou alot smaller (Currently: 25MB).
What amount of RAM should the ProtaX have for 185 Users and 8 Scripts?

25M RAM is quite acceptable, especially with robocop

also restart the hub after deleting the script, ptokax fails 2 reallocate ram after script removal. Script removal seems problematic 4 me, hope PPK will confirm this.
Title:
Post by: Optimus on 08 November, 2004, 00:04:58
Quote25M RAM is quite acceptable, especially with robocop
lol why is that if i may ask?

and

a) It's not smart to give your opinion about a other script since your having your own script package.
b) To keep the peace i sure don't do that.
c) It doesn't make ya populair either.

If you wanne say something about some 1's script go talk to him first then posting it on forum

So what answer shell i give you.

1. mmm yours isn't that good either
2. i believe mine is better
3. i got it all wrong

you get the picture ;)
Title:
Post by: bastya_elvtars on 08 November, 2004, 00:11:42
QuoteOriginally posted by Optimus
Quote25M RAM is quite acceptable, especially with robocop
lol why is that if i may ask

first because its a huge script (its enuf in itself lol)

second: ppl reported that it has a big (relatively) memory usage - it is not a problem, but a fact
Title:
Post by: Optimus on 08 November, 2004, 00:16:15
Robocop isn't huge it's verry small you smart ass. Specialy with Version 9.x memory is verry small

i compared my script with others and in relative to them mem usage is verry small.

It's far away from Channel bot

cheers
Title:
Post by: bastya_elvtars on 08 November, 2004, 00:30:32
QuoteOriginally posted by Optimus
Robocop isn't huge it's verry small you smart ass. Specialy with Version 9.x memory is verry small

i compared my script with others and in relative to them mem usage is verry small.

It's far away from Channel bot

cheers

huge means many functions, dont misunderstand me (i dont wanna disagree w/ a mod , i did it far enuf times)
Title:
Post by: BoJlk on 08 November, 2004, 02:06:50
Quoteplop: "stop the script and delete all files in the userinfo folder"

I deleted the Scripts and restarted the HUB...
And the userinfo folder is for the UserCleaner v2.lua!  ?(
it contains two files lastseen.lst , noclean.lst
it's not userinfo.lua files...

Currnet RAM usage:
(http://img.photobucket.com/albums/v509/BoJlk/Forum%20Use/ProtaXRam002.jpg)(http://img.photobucket.com/albums/v509/BoJlk/Forum%20Use/ScriptsMemory.jpg)

 ?( And Optimus, bastya_elvtars
That was the srtangested/useless POSTs i ever read!
i never expected you to argue about nothing!
Those POSTs didn't helped me at all nor gave any solution to my problem...Those was the strangested 5 posets i ever read (or you both had a bad day or something  ?( )
Title:
Post by: bastya_elvtars on 08 November, 2004, 12:24:20
from now on its not the scripts but ptokax itself that eats ram as i see the mem used by scripts

usercleaner script needs those files 2 determine who should be cleaned - it is the script that uses the userinfo folder

sorry for being a pest, i should really have kept that thing about robo for myself... :baby:
Title:
Post by: Optimus on 08 November, 2004, 13:05:53
well i must admid that RCv8 has a big memory legg, so  i suggest changing to v9 will solve your prob a little.

peace ;)
Title:
Post by: BoJlk on 08 November, 2004, 14:54:20
if Optimus you're here then:
Can you make some kind of settings export for RoboCop that might come as a seperate program...
it will export settings from v8 or v9 into file
and the file will be imported into v8 v9...
Because i tried to export some logs from v8
and you even changed the loging in v9

*edit
I want to make the HUB's integration as smoother as possible
Maybe not only for these versions! (v8, v9)
Title:
Post by: Optimus on 08 November, 2004, 15:13:47
Hi there, it's almost impossible at the moment. The settings files are to much it's more then 1 hehe

a) I need to rewrite the settings files and put them in to 1 large file etc. But even then it's complicated.

b) I change my script to often, as you sayed before all setting files are different. That's also a reason i will be hard todo

I have no time at the moment to make your wish reality

Greetingz Optimus
Title:
Post by: BoJlk on 08 November, 2004, 15:52:10
hehe...maybe in a distant FUTURE.
When you'll become a big Corporation Distributing the "RoboCop?  Corporation" Software"Around the World"
then one of your employes will take the assigment on himself... :D  :D  :D

Sorry for all the scripters out there that make a good Security scripts, but RC rosks...all in one features.
Title:
Post by: Optimus on 08 November, 2004, 16:10:46
Yhea sometimes i'm thinking about partners to it would make things easyer. But trust is the main criterium so i haven't found any 1 yet hehe :D
Title:
Post by: BoJlk on 08 November, 2004, 16:51:24
TRUST is a BIG issue

*edit
BTW is 54MB is still acseptable?
for ProtaX Ram usage?!
Title:
Post by: BoJlk on 11 November, 2004, 05:15:49
Well, the problem still there!
it's now 97MB of RAM usage!  ?(
After deleting the userinfo.lua and didn't add any other Scripts neither.
Title: Hi!
Post by: enema on 11 November, 2004, 07:37:47
Acording to this software, my hub is taking 11 MB of ram when there are no users in it (after restart) and 11 MB when there are 53 users in it. Have to wait till evening, when my hub serves up to 120 - 130 users...

Im using RoboCop 8.0b, topic_changer, deflood (by plop) some kind of simple anti spam and time bot
Title: Notice
Post by: BoJlk on 11 November, 2004, 09:12:07
Well i've noticed that when i enable CMD's
in Users and Chats the Memory Usage starts to Climb up...when i had 97MB i've disabled it and it droped to around 80MB...
Title:
Post by: bastya_elvtars on 11 November, 2004, 10:47:23
QuoteOriginally posted by BoJlk
Well i've noticed that when i enable CMD's
in Users and Chats the Memory Usage starts to Climb up...when i had 97MB i've disabled it and it droped to around 80MB...

think of the fact that the computer has to show the cmds continually

[10:47] (81.185.90.183) > $Key A@G?/%DCN096%/?wgG"!T?????ĂPň?07??52?31rđŕ??/%DCN000%/łň2|
[10:47] (81.185.90.183) > $ValidateNick biigix|
[10:47] biigix (81.185.90.183) > $Version 1,0091|
[10:47] biigix (81.185.90.183) > $GetNickList|
[10:47] biigix (81.185.90.183) > $MyINFO $ALL biigix mldc client$ $DSL$$  11534336$|
[10:47] (212.90.82.81) > $Key Q?ˇ2?Ő0đă?F!˛/%DCN005%/WBFđ?ŁŐ?SRŇb?Q3Băˇ?A@s˛|
[10:47] (212.90.82.81) > $ValidateNick mzpppi|
[10:47] x User removed: biigix (Socket 308)
[10:47] hugo_fra_tv2? (81.225.83.109) > $UserIP biigix|
[10:47] mzpppi (212.90.82.81) > $Version 1,0091|
[10:47] mzpppi (212.90.82.81) > $GetNickList|
[10:47] mzpppi (212.90.82.81) > $MyINFO $ALL mzpppi mldc client$ $DSL$$  11534336$|
[10:47] mzpppi (212.90.82.81) > $RevConnectToMe [FIN]Killian mzpppi|
[10:47] mzpppi (212.90.82.81) > $ConnectToMe [FIN]Killian 212.90.82.81:4444|
[10:47] mzpppi (212.90.82.81) > $RevConnectToMe [FIN]Killian mzpppi|
[10:47] mzpppi (212.90.82.81) > $ConnectToMe [FIN]Killian 212.90.82.81:4444|
[10:47] x User removed: mzpppi (Socket 380)
[10:47] hugo_fra_tv2? (81.225.83.109) > $UserIP mzpppi|
[10:47] (81.153.39.84) > $Key вƒ?Qq 3ă˛??!?&/%DCN000%/?đ??ˇC?Ă0?/%DCN036%/ćR?CĐ!"?!BPR?|
[10:47] (81.153.39.84) > $ValidateNick wnyixn|
[10:47] wnyixn (81.153.39.84) > $Version 1,0091|
[10:47] wnyixn (81.153.39.84) > $GetNickList|
[10:47] wnyixn (81.153.39.84) > $MyINFO $ALL wnyixn mldc client$ $DSL$$  11534336$|
[10:47] x User removed: wnyixn (Socket 308)
[10:47] hugo_fra_tv2? (81.225.83.109) > $UserIP wnyixn|
[10:47] (82.135.28.44) > $Key ?pd?ł#0!?đaq?/%DCN000%/@Ą?Cc?p!v/%DCN005%/Ńe@"W/%DCN096%/?&?đ?WĐ????|
[10:47] (82.135.28.44) > $ValidateNick abewad|
[10:47] abewad (82.135.28.44) > $Version 1,0091|
[10:47] abewad (82.135.28.44) > $GetNickList|
[10:47] abewad (82.135.28.44) > $MyINFO $ALL abewad mldc client$ $DSL$$  11534336$|
[10:47] x User removed: abewad (Socket 308)
[10:47] hugo_fra_tv2? (81.225.83.109) > $UserIP abewad|
[10:47] [HUN]hungaricum (147.229.192.34) > $Search Hub:[HUN]hungaricum F?T?0?1?primus|
[10:47] [HUN]hungaricum (147.229.192.34) > $RevConnectToMe [HUN]hungaricum Nidaros|
[10:47] Nidaros (80.202.30.254) > $ConnectToMe [HUN]hungaricum 80.202.30.254:4012|
[10:47] (69.111.154.210) > $Key ?U"S GWBR??Rňˇňq?/%DCN036%/1CC%?pB/%DCN096%/@@ ?P??7?V!12ƒ|
[10:47] (69.111.154.210) > $ValidateNick jckqkt|
[10:47] jckqkt (69.111.154.210) > $Version 1,0091|
[10:47] jckqkt (69.111.154.210) > $GetNickList|
[10:47] jckqkt (69.111.154.210) > $MyINFO $ALL jckqkt mldc client$ $DSL$$  11534336$|
[10:47] x User removed: jckqkt (Socket 328)
[10:47] hugo_fra_tv2? (81.225.83.109) > $UserIP jckqkt|
[10:47] (67.71.84.9) > $Key v?˛0b? ŕ?uŃ?ŕ'ć?ŕ 1Ŕr R??ŕ&F??ł#g/%DCN000%/uCń?|
[10:47] (67.71.84.9) > $ValidateNick xDonkey_User|
[10:47] xDonkey_User (67.71.84.9) > $Version 1,0091|
[10:47] xDonkey_User (67.71.84.9) > $GetNickList|
[10:47] xDonkey_User (67.71.84.9) > $MyINFO $ALL xDonkey_User mldc client$ $DSL$$  11534336$|
[10:47] x User removed: xDonkey_User (Socket 328)

This has to be stored in ram,  so yes, it stores a lot. Disable that window. (forgot this)
Title:
Post by: BoJlk on 11 November, 2004, 11:35:32
well, does it have a *.log file somewhere?
Title:
Post by: bastya_elvtars on 11 November, 2004, 15:12:59
QuoteOriginally posted by BoJlk
well, does it have a *.log file somewhere?

ptokax is able to log the mainchat only. These commands are not required to log, cause they are plain dc protocol commands. You have notning to do them, the whole function is only good for developing purposes.
Title:
Post by: BoJlk on 11 November, 2004, 16:37:17
Okey...good enought for me.
Title: Anyone heard of DCH++??
Post by: Saivert on 25 April, 2005, 12:40:47
DCH++ is a hubsoft with small memory footprint, and you can extend it with plugins and LUA scripts.
It's evolving to an ADC protocol hubsoft as we speak.
ADC promises better efficiency as the command names are shorter (RCM instead of $RevConnectMe) and all the other things that come with ADC (better search, increased security, CID, etc..).

http://dchpp.digitalbrains.com/
Title:
Post by: PPK on 25 April, 2005, 13:02:44
QuoteOriginally posted by Saivert
ADC promises better efficiency as the command names are shorter (RCM instead of $RevConnectMe)
xRCM mycid targetcid proto TO\n send in UTF-8 (something like 2 bytes per char) instead of $RevConnectToMe mynick targetnick| ... good choice of example how ADC use more badwith :D
Title: Oh, yes I forgot that.
Post by: Saivert on 27 April, 2005, 13:00:18
I know all this, that isn't the real question here. This thread was about the efficiency of the hub software itself, not what data flows through the net (I hate protocol wars). We all know that ADC will takeover anytime soon and that It might require more bandwith. But I don't think that matters becuase the ADC protocol promises so many benefits that it out-weighs the larger connection strings. And who knows, maybe becuase of the larger connections string it requires fewer transactions in order to a simple task as most of the information is sendt in one go, and silly protocol extentions are now a thing of the past.

The internet itself is based on very old technology and would require a overhaul itself (HTTP is connection-less, lacks native session support which forces scripts to use hacks in order to make it happen).