logs archiveIRC Archive / Undernet / #asm / 2006 / February / 10 / 1
skyhigh
TCA!
mp3_KoaLa
msg me if you can assist. Having trouble with a 15 day demo :o)
_exe
15 day?
?? movnti
wisebot
Oh, I forgot the answer
mp3_KoaLa
Sorry!
stool
hmm
its quiet as usual..
TCA
We're ma******ting furiously
stool
oh then don't let me disturb you
TCA, what is your opinion of the best way or algorithm to manage allocated memory?
TCA
Uhm... don't ask me that. Malloc() is one of the most complicated things to write
         

stool
i was writing and writing my little OS code then i just froze with memory management..
TCA
Yeah, good luck. There's no straightforward answer. No right way to do it.
tiocsti
malloc efficiency depends on the type of data, and the type of operations. Without knowing exactly how it will be used, it'd tough to make a gp algorithm that performs well
and if you want good performance AND efficient memory use, it's even harder
fixed block allocators perform well for a lot of tasks, but they arent memory efficient, for example
stool
aye i was thinking of just fixed blocks of 4k pages to make it simple when i go into paging
tiocsti
well i meant fixed blocks with various pools based on size of request
usually on a page boundary
stool
so basically in the powers of 2 blocks
tiocsti
yeah, it's fairly easy to implement too
scale request to correct blocksize
grab em off the free list
if none on freelist, allocate fresh memory
and free() can stick em on the free list
which leaves you just the allocation question
brk used to be the typical way, but these days mmap of /dev/zero is a more common way to allocate memory
stool
what is brk?
_exe
brk sets the end of the data segment to the value specified by
end_data_segment, when that value is reasonable, the system does have
enough memory and the process does not exceed its max data size (see
setrlimit(2)).
brk, sbrk - change data segment size
stool
im also hammered on if i should use a table of representing blocks of memory or a list of free memory ranges, since if you are going to allow allocation smaller then 4k the list can grow large..
hmm
TCA
(Action) pokes sektie_
Yer site.. is blank.
voider.. fix wisebot
voider
?
TCA
.dasm16 90
wisebot
TCA:
-------------------------------------------------
TCA
Mmhmm.
voider
rah
ok
i forgot to install nasm when i reinstalled the server
TCA
(Action) gasps
(Action) casts... FROST SHOCK... to voider's face
voider
ouch
nasm emerging
.dasm 90
wisebot
voider:
-------------------------------------------------
00000000 90 nop
-------------------------------------------------
voider
fixed
         

TCA
(Action) casts holy light on voider.
voider
heh
TCA
But only rank 1.
voider
it's ok, it's enough to encourage me to write comments for an homework's code
TCA
Seriously, though.. thank you.
voider
it was a pleasure
TCA
You know.. I want to like linux. I really do. I installed SuSE.... and the install was nice. But linux is still unadulterated crap.
Creating users crashed. Repeatedly.
Fuck you, linux. Fuck you.
voider
?
how did you created users?
i don't understand how this step can crash
TCA
I used Kuser
I don't understand how it can crash either
voider
rah
TCA
No, wait. I can understand.
voider
never trust a graphical tool that you don't know what it does
TCA
It's a crappy OS.
voider
man useradd
TCA
I know how to add users manually. I don't want to do that any more
voider
kuser is'nt part of the os..
you can't judge an os by the tools you decided to install on it
TCA
Fuck you, KDE. Fuck you.
I didn't actually decide to install that. It defaulted.
And you're making excuses
voider
me?
TCA
Your arm is on fire.
I would be just as upset if MSPaint crashed repeatedly
I would say, "Fuck you, Windows. Fuck you."
However, it doesn't do this.
Firefox, on the other hand, does
voider
heh
TCA
Although I've learned that's actually flash 8.0
So I don't fault Firefox
much
voider
you can return to dos if you prefer ;)
TCA
Good times
The whole sum and collection of it is bad.
No.. I shouldn't say that
The install was very friendly for SuSE. Vast improvement over Fedora
But when I can't do basic things...
voider
have you ever tried gentoo?
TCA
Yes
Don't get me started
voider
if you don't mind the install time, i think it's almost perfect
TCA
I couldn't even get through the install
voider
i remember you told you were a unix guy, no?
TCA
I am
voider
and you can't finish a gentoo install?
TCA
I gave up after page 13 of the install manual, where I was cutting and pasting verbatim
Why there wasn't a "Do all this crap for me" button still eludes me
voider
the most complex thing in the gentoo install process is probably the chmod, and it's far from hard to understand
a stage3 is fast and easy
TCA
I don't want to have to read 20 pages of text to install an OS
Why you and every other kool-aid drinking linux weenie doesn't understand that I cannot fathom
voider
fathom?
TCA
comprehend
voider
sry, i don't understand
oh ok
TCA
I'm not asking for much
voider
i'm not a linux zealot, or a wennie (i understand this word as zealot), but i use it because it does what i need
TCA
Just a nice easy install with sane defaults (SuSE meets that requirement), and usable tools
voider
i just don't like that ppl continue to spread mis-conception like "linux is hard to install"
TCA
When the tool presented to me doesn't work...
voider
or "it's impossible to create users in linux"
TCA
It's not impossible, but I don't want to do it manually
I've been doing it manually for 23 years
Make it stop already
voider
what is less manually?
kusers?
TCA
That's the tool presented to me
voider
of a simple keystrokes?
TCA
And had it worked, I would have been very happy
But it didn't work
voider
useradd -g group,goup2, group2 username
but i know you know
TCA
[00:51] <TCA> I've been doing it manually for 23 years
[00:51] <TCA> Make it stop already
FreeBSD's adduser was perfect, and Kuser was very similar.
Had it worked, I would not be here ranting about how crappy the whole lot of you are
Get it? Don't tell me to do it a different way because the DEFAULT INSTALLED way FAILED
voider
i never tried/saw kusers, do i can't really talk
it's just weird to see someone bashing on an OS just because a single tool failed
TCA
I couldn't play DVDs either
rlogin didn't work, and there's no option in /etc/xinit.d
I could go on....
voider
heh
ok
TCA
It didn't detect my ethernet card.. it just detected the on-board
The sound had a problem
But I'm ignoring those because it's a production machine, not an entertainment device
EvileCatta
and it looked at you funny too!
TCA
And it raped my dog and killed my cat
« prev 1 2 next »