Skip to contentSkip to conversation

mac80211: STA info size

DISCUSSION Johannes Berg 3 participants 4 messages Feb 22, 2008 – Mar 4, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

I was just reorganising struct sta_info to clarify the locking (will send another mail about that) and noticed that due to the HT stuff, each STA info struct currently (after my reorg) takes 2432 bytes. Almost 2000 of those are in struct sta_ampdu_mlme which is most likely not used for most STAs.

Do you think that is too much memory per station? It'd probably be possible to allocate the sta_ampdu_mlme dynamically when needed, no?

johannes

#1 lore raw
Quoted 8 lines · Johannes Berg

I was just reorganising struct sta_info to clarify the locking (will send another mail about that) and noticed that due to the HT stuff, each STA info struct currently (after my reorg) takes 2432 bytes. Almost 2000 of those are in struct sta_ampdu_mlme which is most likely not used for most STAs.

Do you think that is too much memory per station? It'd probably be possible to allocate the sta_ampdu_mlme dynamically when needed, no?

My count was closer to 1.5k, but I may have missed something. Either way, that seems a little big to me. A dynamic allocation strategy seems appropriate to me. Anyone disagree?

John

Signature · 2 lines
John W. Linville
[email protected]
#2 lore raw
Quoted 9 lines
Quoted 7 lines

STA info struct currently (after my reorg) takes 2432 bytes. Almost 2000 of those are in struct sta_ampdu_mlme which is most likely not used for most STAs.

Do you think that is too much memory per station? It'd probably be possible to allocate the sta_ampdu_mlme dynamically when needed, no?

My count was closer to 1.5k, but I may have missed something.

You need to get pahole :P

http://lwn.net/Articles/206805/

johannes

#3 lore raw
Quoted 9 lines
Quoted 8 lines
Quoted 6 lines

STA info struct currently (after my reorg) takes 2432 bytes. Almost 2000 of those are in struct sta_ampdu_mlme which is most likely not used for most STAs.

Do you think that is too much memory per station? It'd probably be possible to allocate the sta_ampdu_mlme dynamically when needed, no?

My count was closer to 1.5k, but I may have missed something.

I did the check myself and your numbers are correct. i also think dynamic allocation is the way to go. unless something i skipped will pop up i'll do the changes.

Ron